Skip to content

Commit 9ecaa0f

Browse files
committed
Merge remote-tracking branch 'origin/dev_1.5.0_OneHotAttribute' into dev_1.5.0_OneHotAttribute
# Conflicts: # art/attacks/attack.py
2 parents a280e68 + 09b9a10 commit 9ecaa0f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

art/attacks/attack.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ def __init__(self, estimator, attack_feature: Union[int, slice] = 0):
321321
"""
322322
:param estimator: A trained estimator targeted for inference attack.
323323
:type estimator: :class:`.art.estimators.estimator.BaseEstimator`
324+
:param attack_feature: The index of the feature to be attacked.
324325
"""
325326
super().__init__(estimator)
326327
self.attack_feature = attack_feature
@@ -345,10 +346,6 @@ def set_params(self, **kwargs) -> None:
345346
super().set_params(**kwargs)
346347
self._check_params()
347348

348-
def _check_params(self) -> None:
349-
if self.attack_feature < 0:
350-
raise ValueError("Attack feature must be positive.")
351-
352349

353350
class ReconstructionAttack(Attack):
354351
"""

0 commit comments

Comments
 (0)