Skip to content

Commit

Permalink
Merge pull request #98 from lugen4ro/fix_numpy_attribute_error
Browse files Browse the repository at this point in the history
Fix numpy error pertaining to np.Inf
  • Loading branch information
tsugumi-sys authored Jul 24, 2024
2 parents fd8a460 + f8f953c commit afe4c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/utils/early_stopping.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(
self.counter = 0
self.best_score: Optional[float] = None
self.early_stop = False
self.val_loss_min = np.Inf
self.val_loss_min = np.inf
self.delta = delta
self.model_filename = model_save_path
if not model_save_path.endswith(".pt"):
Expand Down

0 comments on commit afe4c80

Please sign in to comment.