Closed lorenzoh closed 3 years ago
This PR includes internal changes to callback and callback state:
Scheduler
Metrics
TrainingPhase
learner.cbstate.metricsstep
Phase => MVHistory
learner.cbstate.history
Phase => History
addcallback!(learner, cb)
getcallback(learner, C)
replacecallback!(learner, cb)
removecallback(learner, C)
Init
It also includes SmoothLoss(beta) a metric of the loss with exponential weight.
SmoothLoss(beta)
SmoothLoss has no example not tests
SmoothLoss
This PR includes internal changes to callback and callback state:
Scheduler
andMetrics
store step state separately for each phase. As a resultTrainingPhase
is no longer "special".learner.cbstate.metricsstep
is now a dict ofPhase => MVHistory
instead of just one mvhistory.learner.cbstate.history
is now a dict ofPhase => History
instead of just one history.addcallback!(learner, cb)
getcallback(learner, C)
replacecallback!(learner, cb)
removecallback(learner, C)
Init
handler of included callbacks is now idempotent, allowing it to be retriggered when callbacks are changed.It also includes
SmoothLoss(beta)
a metric of the loss with exponential weight.