RaVeN : Relational Verification of Neural Networks
Relational erifier runs through the unittest framework. A new unit test can be added to run the verifier
with a specific configuration.
Current unit tests are located in src/tests/test_raven.py
.
Conda Environment at environment.yml
, install with conda env create -f environment.yml
.
Move to the RaVeN directory
cd RaVeN
Then run the following any of the following commands
Run any experiment by replacing test_name
with any test from class TestDifferenceAblation
from the file RaVeN/src/tests/test_raven.py
Small networks
python -m unittest -v src.tests.test_raven.TestUntargetedUapSmall.test_name
Large networks
python -m unittest -v src.tests.test_raven.TestUntargetedUapLarge.test_name
Run any experiment by replacing test_name
with any test from class TestTargetedUap
from the file RaVeN/src/tests/test_raven.py
python -m unittest -v src.tests.test_raven.TestTargetedUap.test_name
Run any experiment by replacing test_name
with any test from class TestMonotonicity
from the file RaVeN/src/tests/test_raven.py
python -m unittest -v src.tests.test_raven.TestMonotonicity.test_name
Run any experiment by replacing test_name
with any test from class TestWorstCaseHamming
from the file ``RaVeN/src/tests/test_raven.py`
python -m unittest -v src.tests.test_raven.TestWorstCaseHamming.test_name
Run any experiment by replacing test_name
with any test from class TestDifferenceAblation
from the file RaVeN/src/tests/test_raven.py
python -m unittest -v src.tests.test_raven.TestDifferenceAblation.test_name
-
Update the parameters in the
test_custom
fromTestRavenCustom
in the fileRaVeN/src/tests/test_raven.py
. The classRaVeNArgs
fromRaVeN/src/raven_args.py
defines the parameters -
After updating parameters Move to the RaVeN directory
cd RaVeN
- Run the following command from
python -m unittest -v src.tests.test_raven.TestRavenCustom.test_custom