pub struct LearnerItem<T> {
pub item: T,
pub progress: Progress,
pub epoch: usize,
pub epoch_total: usize,
pub iteration: usize,
pub lr: Option<LearningRate>,
}Expand description
A learner item.
Fields§
§item: TThe item.
progress: ProgressThe progress.
epoch: usizeThe epoch.
epoch_total: usizeThe total number of epochs.
iteration: usizeThe iteration.
lr: Option<LearningRate>The learning rate.
Implementations§
Trait Implementations§
Source§impl<T> From<&LearnerItem<T>> for EvaluationProgress
impl<T> From<&LearnerItem<T>> for EvaluationProgress
Source§fn from(item: &LearnerItem<T>) -> Self
fn from(item: &LearnerItem<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<&LearnerItem<T>> for MetricMetadata
impl<T> From<&LearnerItem<T>> for MetricMetadata
Source§fn from(item: &LearnerItem<T>) -> Self
fn from(item: &LearnerItem<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<&LearnerItem<T>> for TrainingProgress
impl<T> From<&LearnerItem<T>> for TrainingProgress
Source§fn from(item: &LearnerItem<T>) -> Self
fn from(item: &LearnerItem<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for LearnerItem<T>where
T: Freeze,
impl<T> RefUnwindSafe for LearnerItem<T>where
T: RefUnwindSafe,
impl<T> Send for LearnerItem<T>where
T: Send,
impl<T> Sync for LearnerItem<T>where
T: Sync,
impl<T> Unpin for LearnerItem<T>where
T: Unpin,
impl<T> UnwindSafe for LearnerItem<T>where
T: UnwindSafe,
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> 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