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
837ffec0
Commit
837ffec0
authored
Aug 16, 2022
by
Vít Novotný
Browse files
Fix off-by-one error in schedules
parent
ff8e4281
Pipeline
#146527
passed with stage
in 8 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ahisto_named_entity_search/recognition/schedule.py
View file @
837ffec0
...
...
@@ -25,7 +25,7 @@ class FairSequentialSchedule(Schedule):
if
objective
in
self
.
converged_objectives
and
not
self
.
args
.
log_converged_objectives
:
continue
num_train_epochs
=
objective
.
epoch
-
starting_epoch
if
num_train_epochs
>
=
self
.
MAX_NUM_TRAIN_EPOCHS
:
if
num_train_epochs
>
self
.
MAX_NUM_TRAIN_EPOCHS
:
continue
yield
objective
...
...
@@ -51,7 +51,7 @@ class FineTuningSchedule(Schedule):
if
objective
in
self
.
converged_objectives
and
not
self
.
args
.
log_converged_objectives
:
break
num_train_epochs
=
objective
.
epoch
-
starting_epoch
if
num_train_epochs
>
=
self
.
MAX_NUM_TRAIN_EPOCHS
:
if
num_train_epochs
>
self
.
MAX_NUM_TRAIN_EPOCHS
:
break
yield
objective
...
...
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