Change 'mod_step' to 'every'
This commit is contained in:
parent
d9ae970fd9
commit
7986185fcb
|
@ -177,8 +177,8 @@ class ExtensibleTrainer(BaseModel):
|
||||||
# Iterate through the steps, performing them one at a time.
|
# Iterate through the steps, performing them one at a time.
|
||||||
state = self.dstate
|
state = self.dstate
|
||||||
for step_num, s in enumerate(self.steps):
|
for step_num, s in enumerate(self.steps):
|
||||||
# Skip steps if mod_step doesn't line up.
|
# 'every' is used to denote steps that should only occur at a certain integer factor rate. e.g. '2' occurs every 2 steps.
|
||||||
if 'mod_step' in s.step_opt.keys() and step % s.step_opt['mod_step'] != 0:
|
if 'every' in s.step_opt.keys() and step % s.step_opt['every'] != 0:
|
||||||
continue
|
continue
|
||||||
# Steps can opt out of early (or late) training, make sure that happens here.
|
# Steps can opt out of early (or late) training, make sure that happens here.
|
||||||
if 'after' in s.step_opt.keys() and step < s.step_opt['after'] or 'before' in s.step_opt.keys() and step > s.step_opt['before']:
|
if 'after' in s.step_opt.keys() and step < s.step_opt['after'] or 'before' in s.step_opt.keys() and step > s.step_opt['before']:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user