Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrei-Claudiu Roibu
BrainMapper
Commits
d12bcf8e
Commit
d12bcf8e
authored
Apr 29, 2020
by
Andrei-Claudiu Roibu
🖥
Browse files
fixed bug preventing stop if score=best_score
parent
52785b10
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/early_stopping.py
View file @
d12bcf8e
...
...
@@ -50,7 +50,7 @@ class EarlyStopping:
self
.
best_score
=
score
self
.
save_checkpoint
=
True
elif
score
<
self
.
best_score
:
elif
score
<
=
self
.
best_score
:
self
.
counter
+=
1
self
.
save_checkpoint
=
False
print
(
"Early Stopping Counter: {}/{}"
.
format
(
self
.
counter
,
self
.
patience
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment