pub struct CnnTrainConfig {
pub lr: f32,
pub batch_size: usize,
pub loss: SupervisedLoss,
pub batch_iter_options: BatchIterOptions,
}Expand description
Configuration for high-level CNN training.
Fields§
§lr: f32§batch_size: usize§loss: SupervisedLoss§batch_iter_options: BatchIterOptionsTrait Implementations§
Source§impl Clone for CnnTrainConfig
impl Clone for CnnTrainConfig
Source§fn clone(&self) -> CnnTrainConfig
fn clone(&self) -> CnnTrainConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CnnTrainConfig
impl Debug for CnnTrainConfig
Auto Trait Implementations§
impl Freeze for CnnTrainConfig
impl !RefUnwindSafe for CnnTrainConfig
impl Send for CnnTrainConfig
impl Sync for CnnTrainConfig
impl Unpin for CnnTrainConfig
impl UnsafeUnpin for CnnTrainConfig
impl !UnwindSafe for CnnTrainConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more