Skip to content

Commit ceb8ba2

Browse files
authored
Merge pull request #886 from keykholt/float
Fix float issue for security_curve.py
2 parents cfc32ed + 6cc0d78 commit ceb8ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

art/evaluations/security_curve/security_curve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def _check_gradient(
132132
# Define parameters for Projected Gradient Descent
133133
max_iter = 100
134134
kwargs["max_iter"] = max_iter
135-
kwargs["eps"] = classifier.clip_values[1]
136-
kwargs["eps_step"] = classifier.clip_values[1] / (max_iter / 2)
135+
kwargs["eps"] = float(classifier.clip_values[1])
136+
kwargs["eps_step"] = float(classifier.clip_values[1] / (max_iter / 2))
137137

138138
# Create attack
139139
attack_pgd = ProjectedGradientDescent(estimator=classifier, **kwargs)

0 commit comments

Comments
 (0)