oa::CbPhase
oa::CbPhase Multi-phase training callback. phases are consecutive ranges of epochs — build the iterator with oa::ItTrainingConfig::epochSteps so epoch boundaries follow the phase schedule, then register one addPhase() per phase in order. Prints a schedule preview at train begin and a phase banner + phase-relative epoch headers (disable the progress bar's own header via SetShowEpochHeader): phase schedule: 1. warmup — 1 epoch (2000 steps) 2. main — 10 epochs (20000 steps) phase 1/2 — warmup · 1 epoch × 2000 steps epoch 1/1 2000/2000 |██████████| ... The OnPhaseBegin hook fires on entering each phase (including the first) — use it to swap LR schedulers, change datasets, etc.
Public Types
Inheritance
public CbTraining · public Callback
Public Methods
Public Method Documentation
Parameters
inIdoa::String—
inEpochsoa::I64—
inStepsoa::I64—
Returns
voidThe declared return value.
Returns
oa::I32The declared return value.
Parameters
inIteroa::ItTraining &—
Returns
voidThe declared return value.
Parameters
inIteroa::ItTraining &—
Returns
voidThe declared return value.
Parameters
inFnPhaseBeginFn—
Returns
voidThe declared return value.