Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
b9b8c0a5
"lib/bindings/python/Cargo.lock" did not exist on "2e4095658715a1a6694e7f655455b09728a4ec99"
Unverified
Commit
b9b8c0a5
authored
Aug 06, 2022
by
Gustaf Ahdritz
Committed by
GitHub
Aug 06, 2022
Browse files
Update early stopping callback
parent
e49c6dc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openfold/utils/callbacks.py
openfold/utils/callbacks.py
+2
-2
No files found.
openfold/utils/callbacks.py
View file @
b9b8c0a5
...
...
@@ -6,8 +6,8 @@ class EarlyStoppingVerbose(EarlyStopping):
The default EarlyStopping callback's verbose mode is too verbose.
This class outputs a message only when it's getting ready to stop.
"""
def
_evalute_stopping_criteria
(
self
,
*
args
):
should_stop
,
reason
=
super
().
_evalute_stopping_criteria
(
*
args
)
def
_evalute_stopping_criteria
(
self
,
*
args
,
**
kwargs
):
should_stop
,
reason
=
super
().
_evalute_stopping_criteria
(
*
args
,
**
kwargs
)
if
(
should_stop
):
rank_zero_info
(
f
"
{
reason
}
\n
"
)
...
...
Write
Preview
Markdown
is supported
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