We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66da472 commit 4edfea0Copy full SHA for 4edfea0
art/attacks/poisoning/bullseye_polytope_attack.py
@@ -294,8 +294,6 @@ def _check_params(self) -> None:
294
if isinstance(self.feature_layer, int):
295
if not 0 <= self.feature_layer < len(self.estimator.layer_names):
296
raise ValueError("feature_layer is not positive integer")
297
- if not isinstance(self.feature_layer, str):
298
- raise ValueError("feature_layer has to be either an integer or a string.")
299
300
if 1 < self.decay_coeff < 0:
301
raise ValueError("Decay coefficient must be between zero and one")
0 commit comments