pub struct TrialSummary {
pub total: usize,
pub completed: usize,
pub pruned: usize,
pub failed: usize,
pub best_trial_id: Option<String>,
pub best_value: Option<f64>,
pub objective: Option<String>,
}Expand description
Trial statistics for a study run.
Fields§
§total: usizeTrials the study ran, in any terminal state.
completed: usizeTrials that ran to completion.
pruned: usizeTrials a pruner stopped early — control flow, not failure.
failed: usizeTrials that ended in an error.
best_trial_id: Option<String>Id of the best-scoring trial, None when none scored.
best_value: Option<f64>Objective value of the best trial.
objective: Option<String>Metric the study optimized, when it declares one.
Trait Implementations§
Source§impl Clone for TrialSummary
impl Clone for TrialSummary
Source§fn clone(&self) -> TrialSummary
fn clone(&self) -> TrialSummary
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 moreSource§impl Debug for TrialSummary
impl Debug for TrialSummary
Source§impl Default for TrialSummary
impl Default for TrialSummary
Source§fn default() -> TrialSummary
fn default() -> TrialSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrialSummary
impl<'de> Deserialize<'de> for TrialSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TrialSummary
impl PartialEq for TrialSummary
Source§fn eq(&self, other: &TrialSummary) -> bool
fn eq(&self, other: &TrialSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrialSummary
impl Serialize for TrialSummary
impl StructuralPartialEq for TrialSummary
Auto Trait Implementations§
impl Freeze for TrialSummary
impl RefUnwindSafe for TrialSummary
impl Send for TrialSummary
impl Sync for TrialSummary
impl Unpin for TrialSummary
impl UnsafeUnpin for TrialSummary
impl UnwindSafe for TrialSummary
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