@@ -238,7 +238,7 @@ def generate(self, x: np.ndarray, y: Optional[np.ndarray] = None, **kwargs) -> n
238238 :return: An array holding the adversarial examples.
239239 """
240240 if y is not None :
241- y = check_and_transform_label_format (y , self .estimator .nb_classes )
241+ y = check_and_transform_label_format (y , nb_classes = self .estimator .nb_classes )
242242 x_adv = x .astype (ART_NUMPY_DTYPE )
243243
244244 if self .estimator .clip_values is not None :
@@ -743,7 +743,7 @@ def generate(self, x: np.ndarray, y: Optional[np.ndarray] = None, **kwargs) -> n
743743 :return: An array holding the adversarial examples.
744744 """
745745 if y is not None :
746- y = check_and_transform_label_format (y , self .estimator .nb_classes )
746+ y = check_and_transform_label_format (y , nb_classes = self .estimator .nb_classes )
747747 x_adv = x .astype (ART_NUMPY_DTYPE )
748748
749749 if self .estimator .clip_values is not None :
@@ -953,7 +953,7 @@ def generate(self, x: np.ndarray, y: Optional[np.ndarray] = None, **kwargs) -> n
953953 :return: An array holding the adversarial examples.
954954 """
955955 if y is not None :
956- y = check_and_transform_label_format (y , self .estimator .nb_classes )
956+ y = check_and_transform_label_format (y , nb_classes = self .estimator .nb_classes )
957957 x_adv = x .astype (ART_NUMPY_DTYPE )
958958
959959 if self .estimator .clip_values is not None :
0 commit comments