Skip to content

Commit

Permalink
Merge pull request #33 from marcpinet/fix-callback-baseline-stop-trai…
Browse files Browse the repository at this point in the history
…ning

fix: none exception on iterable
  • Loading branch information
marcpinet authored Apr 24, 2024
2 parents 449d05f + 24a8cc7 commit 153fb04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions neuralnetlib/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ def fit(self, x_train: np.ndarray, y_train: np.ndarray, epochs: int, batch_size:
break
if callback.on_epoch_end(self, metrics_values):
break

if any(callback.stop_training for callback in callbacks):
break

if verbose:
print()

if any(callback.stop_training for callback in callbacks):
break

if verbose:
print()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='neuralnetlib',
version='2.3.3',
version='2.3.4',
author='Marc Pinet',
description='A simple convolutional neural network library with only numpy as dependency',
long_description=open('README.md', encoding="utf-8").read(),
Expand Down

0 comments on commit 153fb04

Please sign in to comment.