pub struct Sequential<const INPUT: usize, const OUTPUT: usize> { /* private fields */ }Implementations§
Source§impl<const INPUT: usize, const OUTPUT: usize> Sequential<INPUT, OUTPUT>
impl<const INPUT: usize, const OUTPUT: usize> Sequential<INPUT, OUTPUT>
pub fn predict(&self, input: &[Float; INPUT]) -> [Float; OUTPUT]
pub fn predict_in_place(&self, input: &[Float; INPUT]) -> [Float; OUTPUT]
pub fn fit( &mut self, samples: &[Sample<INPUT, OUTPUT>], config: TrainConfig, ) -> Float
pub fn fit_with_loss( &mut self, samples: &[Sample<INPUT, OUTPUT>], loss_fn: &dyn LossFunction<OUTPUT>, config: TrainConfig, ) -> Float
Trait Implementations§
Auto Trait Implementations§
impl<const INPUT: usize, const OUTPUT: usize> Freeze for Sequential<INPUT, OUTPUT>
impl<const INPUT: usize, const OUTPUT: usize> !RefUnwindSafe for Sequential<INPUT, OUTPUT>
impl<const INPUT: usize, const OUTPUT: usize> !Send for Sequential<INPUT, OUTPUT>
impl<const INPUT: usize, const OUTPUT: usize> !Sync for Sequential<INPUT, OUTPUT>
impl<const INPUT: usize, const OUTPUT: usize> Unpin for Sequential<INPUT, OUTPUT>
impl<const INPUT: usize, const OUTPUT: usize> UnsafeUnpin for Sequential<INPUT, OUTPUT>
impl<const INPUT: usize, const OUTPUT: usize> !UnwindSafe for Sequential<INPUT, OUTPUT>
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