oa::ml::training::TrainingSessionHandlers

Engine-thread handlers invoked for application-owned commands.

StRust public API

Declaration

pub struct TrainingSessionHandlers<'a> { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn checkpoint(self, handler: impl FnMut() -> Result<()> + 'a) -> Self
pub fn evaluate(self, handler: impl FnMut() -> Result<()> + 'a) -> Self
pub fn rebuild( self, handler: impl FnMut(&TrainingCommand) -> Result<()> + 'a, ) -> Self

Associated Functions

fn default() -> TrainingSessionHandlers<'a>

Public Method Documentation

pub fn checkpoint( self, handler: impl FnMut() -> Result<()> + 'a ) -> Self
No public source comment is attached to this declaration.
pub fn evaluate( self, handler: impl FnMut() -> Result<()> + 'a ) -> Self
No public source comment is attached to this declaration.
pub fn rebuild( self, handler: impl FnMut(&TrainingCommand) -> Result<()> + 'a ) -> Self
No public source comment is attached to this declaration.
fn default() -> TrainingSessionHandlers<'a>
No public source comment is attached to this declaration.