pub struct TuningHistory { /* private fields */ }Expand description
Tuning history
Implementations§
Source§impl TuningHistory
impl TuningHistory
pub fn new() -> Self
Sourcepub fn add_record(&mut self, record: TuningRecord)
pub fn add_record(&mut self, record: TuningRecord)
Append a tuning record to the history.
Sourcepub fn records(&self) -> &[TuningRecord]
pub fn records(&self) -> &[TuningRecord]
Return a reference to all tuning records.
Sourcepub fn record_best_configuration(
&mut self,
objective: &str,
config: TuningConfiguration,
)
pub fn record_best_configuration( &mut self, objective: &str, config: TuningConfiguration, )
Record a best configuration for a given objective name.
Sourcepub fn get_best_configuration(
&self,
objective: &str,
) -> Option<&TuningConfiguration>
pub fn get_best_configuration( &self, objective: &str, ) -> Option<&TuningConfiguration>
Get the best configuration for a given objective.
Sourcepub fn list_best_configurations(&self) -> Vec<String>
pub fn list_best_configurations(&self) -> Vec<String>
List the objective names that have a recorded best configuration.
Auto Trait Implementations§
impl Freeze for TuningHistory
impl RefUnwindSafe for TuningHistory
impl Send for TuningHistory
impl Sync for TuningHistory
impl Unpin for TuningHistory
impl UnsafeUnpin for TuningHistory
impl UnwindSafe for TuningHistory
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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