Skip to content
Snippets Groups Projects
Commit 67f51fa6 authored by Michele Alberti's avatar Michele Alberti Committed by Julien Girard-Satabin
Browse files

[examples] Use original eps value for MNIST robustness.

parent 324eddc1
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ The CAISAR interpretation language `caisar.mlw ...@@ -75,7 +75,7 @@ The CAISAR interpretation language `caisar.mlw
We will import the relevant theories with the ``use`` keyword. We will import the relevant theories with the ``use`` keyword.
As described in :ref:`interpretation`, the ``Vector`` theory provides As described in :ref:`interpretation`, the ``Vector`` theory provides
a vector type, a getter (``[]``) operation and a ``valid_index`` predicate a vector type, a getter (``[]``) operation and a ``valid_index`` predicate
that determine whether the get operation is within the range of the vector length. that determines whether the get operation is within the range of the vector length.
``NeuralNetwork`` defines a type and an application function (``@@``). ``NeuralNetwork`` defines a type and an application function (``@@``).
We will also need integers and floating point numbers We will also need integers and floating point numbers
to declare and define :math:`\epsilon`. to declare and define :math:`\epsilon`.
......
...@@ -34,6 +34,6 @@ theory MNIST ...@@ -34,6 +34,6 @@ theory MNIST
goal robustness: goal robustness:
let nn = read_neural_network "nets/MNIST_256_2.onnx" ONNX in let nn = read_neural_network "nets/MNIST_256_2.onnx" ONNX in
let dataset = read_dataset "csv/mnist_test.csv" CSV in let dataset = read_dataset "csv/mnist_test.csv" CSV in
let eps = (0.375:t) in let eps = (0.0100000000000000002081668171172168513294309377670288085937500000:t) in
robust nn dataset eps robust nn dataset eps
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment