pub struct ValidEpoch<VI> { /* private fields */ }Expand description
A validation epoch.
Implementations§
Source§impl<VI> ValidEpoch<VI>
impl<VI> ValidEpoch<VI>
Source§impl<VI> ValidEpoch<VI>
impl<VI> ValidEpoch<VI>
Sourcepub fn run<LC: LearnerComponents, VO>(
&self,
model: &LC::Model,
processor: &mut LC::EventProcessor,
interrupter: &TrainingInterrupter,
)where
LC::EventProcessor: EventProcessor<ItemValid = VO>,
<LC::Model as AutodiffModule<LC::Backend>>::InnerModule: ValidStep<VI, VO>,
pub fn run<LC: LearnerComponents, VO>(
&self,
model: &LC::Model,
processor: &mut LC::EventProcessor,
interrupter: &TrainingInterrupter,
)where
LC::EventProcessor: EventProcessor<ItemValid = VO>,
<LC::Model as AutodiffModule<LC::Backend>>::InnerModule: ValidStep<VI, VO>,
Runs the validation epoch.
§Arguments
model- The model to validate.processor- The event processor to use.
Auto Trait Implementations§
impl<VI> Freeze for ValidEpoch<VI>
impl<VI> !RefUnwindSafe for ValidEpoch<VI>
impl<VI> !Send for ValidEpoch<VI>
impl<VI> !Sync for ValidEpoch<VI>
impl<VI> Unpin for ValidEpoch<VI>
impl<VI> !UnwindSafe for ValidEpoch<VI>
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