oa::ml::training::PhaseSchedule
Consecutive phase policy over one super::super::ItTraining lifecycle. The phase schedule does not own another iterator. Its epoch/step totals must exactly match the iterator configuration, and its optional transition hook receives restricted mutable access to the iterator’s existing optimizer.
Declaration
pub struct PhaseSchedule<'hook> { /* private fields */ }Public Rust declaration.
Public Methods
pub fn set_on_phase_begin( &mut self, hook: impl FnMut(usize, &TrainingPhase, &mut dyn Optimizer) -> Result<()> + 'hook, )fn on_train_begin( &mut self, context: &mut TrainingCallbackContext<'_>, ) -> Result<TrainingControl>fn on_epoch_begin( &mut self, context: &mut TrainingCallbackContext<'_>, ) -> Result<TrainingControl>Associated Functions
Public Method Documentation
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.