#[non_exhaustive]pub struct Trained {
pub outcome: TrainingOutcome,
/* private fields */
}Expand description
The outcome of a training attempt, with the warnings it produced.
Returned by FrlTrainer::train and
lts::run. Read the warnings with warnings or
iter_warnings. The API is the same with and without the
alloc feature (the storage, a Vec or MAX_WARNINGS inline slots, is private), so
code written against one build keeps compiling when something else in the dependency
graph enables alloc. An attempt that ends in a
TrainingError has no Trained; its trace records what
happened.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.outcome: TrainingOutcomeThe outcome.
Implementations§
Source§impl Trained
impl Trained
Sourcepub fn warnings(&self) -> &[TrainingWarning]
pub fn warnings(&self) -> &[TrainingWarning]
The warnings, in the order they first occurred.
Sourcepub fn iter_warnings(&self) -> impl Iterator<Item = &TrainingWarning>
pub fn iter_warnings(&self) -> impl Iterator<Item = &TrainingWarning>
The warnings, in the order they first occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trained
impl RefUnwindSafe for Trained
impl Send for Trained
impl Sync for Trained
impl Unpin for Trained
impl UnsafeUnpin for Trained
impl UnwindSafe for Trained
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