Skip to content

Commit

Permalink
Update expected test value for Shadow Attack
Browse files Browse the repository at this point in the history
Signed-off-by: Beat Buesser <[email protected]>
  • Loading branch information
Beat Buesser committed Apr 20, 2023
1 parent 47f3c6e commit 731c1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/attacks/evasion/test_shadow_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_generate(art_warning, fix_get_mnist_subset, image_dl_estimator_for_atta

x_train_mnist_adv = attack.generate(x=x_train_mnist[0:1], y=y_train_mnist[0:1])

assert np.max(np.abs(x_train_mnist_adv - x_train_mnist[0:1])) == pytest.approx(0.31463563, abs=0.06)
assert np.max(np.abs(x_train_mnist_adv - x_train_mnist[0:1])) == pytest.approx(0.3803413510322571, abs=0.06)
except ARTTestException as e:
art_warning(e)

Expand Down

0 comments on commit 731c1d3

Please sign in to comment.