pub struct CompletedTrial<V = f64> {
pub id: u64,
pub params: HashMap<String, ParamValue>,
pub distributions: HashMap<String, Distribution>,
pub value: V,
}Expand description
A completed trial with its parameters, distributions, and objective value.
This struct stores the results of a completed trial, including all sampled parameter values, their distributions, and the objective value returned by the objective function.
Fields§
§id: u64The unique identifier for this trial.
params: HashMap<String, ParamValue>The sampled parameter values, keyed by parameter name.
distributions: HashMap<String, Distribution>The parameter distributions used, keyed by parameter name.
value: VThe objective value returned by the objective function.
Implementations§
Trait Implementations§
Source§impl<V: Clone> Clone for CompletedTrial<V>
impl<V: Clone> Clone for CompletedTrial<V>
Source§fn clone(&self) -> CompletedTrial<V>
fn clone(&self) -> CompletedTrial<V>
Returns a duplicate of the value. Read more
1.0.0 · 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<V> Freeze for CompletedTrial<V>where
V: Freeze,
impl<V> RefUnwindSafe for CompletedTrial<V>where
V: RefUnwindSafe,
impl<V> Send for CompletedTrial<V>where
V: Send,
impl<V> Sync for CompletedTrial<V>where
V: Sync,
impl<V> Unpin for CompletedTrial<V>where
V: Unpin,
impl<V> UnwindSafe for CompletedTrial<V>where
V: 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