Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nlp
ahisto-modules
Named Entity Recognition Experiments
Commits
832adbaa
Commit
832adbaa
authored
Aug 15, 2022
by
Vít Novotný
Browse files
Prevent future objectives from affecting early stopping (cont.)
parent
a3022d22
Pipeline
#146498
passed with stage
in 8 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ahisto_named_entity_search/recognition/schedule.py
View file @
832adbaa
...
...
@@ -46,7 +46,8 @@ class FineTuningSchedule(Schedule):
while
True
:
# Prevent future objectives from affecting early stopping
for
remaining_objective
in
remaining_objectives
:
remaining_objective
.
evaluations_history
[
"eval"
]
=
{}
for
evaluator
,
values
in
remaining_objective
.
evaluations_history
[
"eval"
].
items
():
remaining_objective
.
evaluations_history
[
"eval"
][
evaluator
]
=
[]
if
objective
in
self
.
converged_objectives
and
not
self
.
args
.
log_converged_objectives
:
break
num_train_epochs
=
objective
.
epoch
-
starting_epoch
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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