events: BatchBegin now StepBegin, BatchEnd now StepEnd
CancelBatchException now CancelStepException.
field Learner.batch now Learner.step
Learner.step/batch is no longer a special struct but now a PropDict, allowing you to set arbitrary fields.
Learner.model can now be a NamedTuple/Tuple of models for use in custom training loops. Likewise, learner.params now resembles the structure of learner.model, allowing separate access to parameters of different models.
Callbacks
Added init! method for callback initilization, replacing the Init event which required a Phase to implement.
Scheduler now has internal step counter and no longer relies on Recorder's history. This makes it easier to replace the scheduler without needing to offset the new schedules.
Added
Phase
andstep!
is all you need. See the new tutorial and the new reference.epoch!
,step!
,runstep
,runepoch
CHANGELOG.md
(this file)AbstractValidationPhase
as supertype for validation phasesChanged
Batch*
renamed toStep*
:BatchBegin
nowStepBegin
,BatchEnd
nowStepEnd
CancelBatchException
nowCancelStepException
.Learner.batch
nowLearner.step
Learner.step/batch
is no longer a specialstruct
but now aPropDict
, allowing you to set arbitrary fields.Learner.model
can now be aNamedTuple/Tuple
of models for use in custom training loops. Likewise,learner.params
now resembles the structure oflearner.model
, allowing separate access to parameters of different models.init!
method for callback initilization, replacing theInit
event which required aPhase
to implement.Scheduler
now has internal step counter and no longer relies onRecorder
's history. This makes it easier to replace the scheduler without needing to offset the new schedules.EarlyStopping
callback now uses criteria from EarlyStopping.jlRemoved
fitbatch!
,fitbatchphase!
,fitepoch!
,fitepochphase!
have all been removed.