Struct FreezeThawReport
pub struct FreezeThawReport {
pub outcomes: Vec<TrialOutcome>,
pub total_steps: u64,
pub best_number: Option<u64>,
pub best_value: Option<f64>,
pub log: DecisionLog,
}Expand description
The result of driving a whole scenario through the freeze-thaw scheduler.
Fields§
§outcomes: Vec<TrialOutcome>One entry per trial, in trial-number order.
total_steps: u64The total resource spent — the sum of every trial’s
steps_consumed.
best_number: Option<u64>The study’s best trial number, if any.
best_value: Option<f64>The best objective value, if any.
log: DecisionLogThe raw decision log, keyed by trial id.
Implementations§
§impl FreezeThawReport
impl FreezeThawReport
pub fn paused_numbers(&self) -> Vec<u64>
pub fn paused_numbers(&self) -> Vec<u64>
The numbers of the trials that were paused at least once, ascending — the frozen set.
pub fn resumed_numbers(&self) -> Vec<u64>
pub fn resumed_numbers(&self) -> Vec<u64>
The numbers of the trials that were resumed at least once, ascending — the thawed set.
pub fn still_paused_numbers(&self) -> Vec<u64>
pub fn still_paused_numbers(&self) -> Vec<u64>
The numbers of the trials that ended Paused (frozen and never thawed to
completion), ascending.
pub fn outcome(&self, number: u64) -> Option<&TrialOutcome>
pub fn outcome(&self, number: u64) -> Option<&TrialOutcome>
The outcome of the trial with this number, if it exists.
Trait Implementations§
§impl Clone for FreezeThawReport
impl Clone for FreezeThawReport
§fn clone(&self) -> FreezeThawReport
fn clone(&self) -> FreezeThawReport
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 more§impl Debug for FreezeThawReport
impl Debug for FreezeThawReport
§impl PartialEq for FreezeThawReport
impl PartialEq for FreezeThawReport
impl StructuralPartialEq for FreezeThawReport
Auto Trait Implementations§
impl Freeze for FreezeThawReport
impl RefUnwindSafe for FreezeThawReport
impl Send for FreezeThawReport
impl Sync for FreezeThawReport
impl Unpin for FreezeThawReport
impl UnsafeUnpin for FreezeThawReport
impl UnwindSafe for FreezeThawReport
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,
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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