pub struct Trainer<'a, M, T, R>{ /* private fields */ }Implementations§
Source§impl<'a, M, T, R> Trainer<'a, M, T, R>
impl<'a, M, T, R> Trainer<'a, M, T, R>
pub fn new(model: &'a mut M, dataset: R) -> Self
Sourcepub const fn dataset(&self) -> &Dataset<R::Inputs, R::Targets>
pub const fn dataset(&self) -> &Dataset<R::Inputs, R::Targets>
returns an immutable reference to the training session’s dataset
Sourcepub fn dataset_mut(&mut self) -> &mut Dataset<R::Inputs, R::Targets>
pub fn dataset_mut(&mut self) -> &mut Dataset<R::Inputs, R::Targets>
returns a mutable reference to the training session’s dataset
pub fn begin(&self) -> &Self
Trait Implementations§
Auto Trait Implementations§
impl<'a, M, T, R> Freeze for Trainer<'a, M, T, R>
impl<'a, M, T, R> RefUnwindSafe for Trainer<'a, M, T, R>where
T: RefUnwindSafe,
<R as Records>::Inputs: RefUnwindSafe,
<R as Records>::Targets: RefUnwindSafe,
M: RefUnwindSafe,
impl<'a, M, T, R> Send for Trainer<'a, M, T, R>
impl<'a, M, T, R> Sync for Trainer<'a, M, T, R>
impl<'a, M, T, R> Unpin for Trainer<'a, M, T, R>
impl<'a, M, T, R> !UnwindSafe for Trainer<'a, M, T, R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more