Skip to content
Snippets Groups Projects
Commit 45c587c0 authored by Michele Alberti's avatar Michele Alberti
Browse files

[doc] Update following the changes in stdlib.

parent 6d655b9e
No related branches found
No related tags found
No related merge requests found
...@@ -86,13 +86,13 @@ the local robustness property: ...@@ -86,13 +86,13 @@ the local robustness property:
.. code-block:: whyml .. code-block:: whyml
predicate robust_at (m: model) (d: datum) (eps: t) = predicate robust_at (m: model) (d: record) (eps: t) =
forall x': features. forall x': features.
let (x, _) = d in let (x, _) = d in
linfty_distance x x' eps -> linfty_distance x x' eps ->
predict m x = predict m x' predict m x = predict m x'
Note that a ``datum`` is a dataset element given as a pair of *features* and Note that a ``record`` is a dataset element given as a pair of *features* and
(classification) *label*. Morever, ``linfty_distance`` is a predicate that (classification) *label*. Morever, ``linfty_distance`` is a predicate that
describes how two arrays of floating-point values (*i.e.* ``features``) are describes how two arrays of floating-point values (*i.e.* ``features``) are
considered close up-to a pertubation ``eps``, while ``predict`` is a function considered close up-to a pertubation ``eps``, while ``predict`` is a function
......
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