Skip to content

Commit 5549564

Browse files
committed
Fix unit test
Signed-off-by: Beat Buesser <[email protected]>
1 parent 089c929 commit 5549564

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

art/estimators/classification/keras.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def predict( # pylint: disable=W0221
559559

560560
return predictions
561561

562-
def fit(
562+
def fit( # pylint: disable=W0221
563563
self, x: np.ndarray, y: np.ndarray, batch_size: int = 128, nb_epochs: int = 20, verbose: bool = False, **kwargs
564564
) -> None:
565565
"""
@@ -589,7 +589,9 @@ def fit(
589589
x=x_preprocessed, y=y_preprocessed, batch_size=batch_size, epochs=nb_epochs, verbose=int(verbose), **kwargs
590590
)
591591

592-
def fit_generator(self, generator: "DataGenerator", nb_epochs: int = 20, verbose: bool = False, **kwargs) -> None:
592+
def fit_generator( # pylint: disable=W0221
593+
self, generator: "DataGenerator", nb_epochs: int = 20, verbose: bool = False, **kwargs
594+
) -> None:
593595
"""
594596
Fit the classifier using the generator that yields batches as specified.
595597

0 commit comments

Comments
 (0)