pub struct TrialOutcome {
pub final_loss: f32,
pub convergence_epoch: usize,
pub stability_score: f32,
pub throughput: f32,
pub gradient_norm_variance: f32,
pub peak_memory_bytes: Option<usize>,
}Expand description
What a caller-supplied objective reports after really training a configuration.
The tuner cannot know any of these numbers: only the caller runs the model. Every field is therefore a measurement handed back by the objective, and the tuner adds only the wall-clock time it timed itself.
Fields§
§final_loss: f32Validation loss at the end of the trial. Lower is better.
convergence_epoch: usizeEpoch at which the run converged (or the number of epochs actually run).
stability_score: f32Training stability in [0, 1]; 1.0 means no divergence was observed.
throughput: f32Observed throughput in samples per second.
gradient_norm_variance: f32Variance of the gradient norm observed during the trial.
peak_memory_bytes: Option<usize>Peak memory in bytes, if the caller measured it.
Implementations§
Trait Implementations§
Source§impl Clone for TrialOutcome
impl Clone for TrialOutcome
Source§fn clone(&self) -> TrialOutcome
fn clone(&self) -> TrialOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrialOutcome
impl RefUnwindSafe for TrialOutcome
impl Send for TrialOutcome
impl Sync for TrialOutcome
impl Unpin for TrialOutcome
impl UnsafeUnpin for TrialOutcome
impl UnwindSafe for TrialOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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