Struct BenchReport
pub struct BenchReport {
pub outcomes: Vec<TrialOutcome>,
pub total_steps: u64,
pub best_number: Option<u64>,
pub best_value: Option<f64>,
}Expand description
The result of driving a whole scenario through one 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. This is the budget a
pruner is meant to shrink.
best_number: Option<u64>The study’s best trial number (tune-ranked), if any.
best_value: Option<f64>The best objective value, if any.
Implementations§
§impl BenchReport
impl BenchReport
pub fn pruned_count(&self) -> usize
pub fn pruned_count(&self) -> usize
How many trials the scheduler pruned.
pub fn pruned_numbers(&self) -> Vec<u64>
pub fn pruned_numbers(&self) -> Vec<u64>
The numbers of the pruned trials, 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.
pub fn with_label<'a>(&'a self, label: &str) -> Vec<&'a TrialOutcome>
pub fn with_label<'a>(&'a self, label: &str) -> Vec<&'a TrialOutcome>
Every outcome whose curve carried label.
pub fn none_pruned(&self, label: &str) -> bool
pub fn none_pruned(&self, label: &str) -> bool
true when no trial carrying label was pruned.
pub fn all_pruned(&self, label: &str) -> bool
pub fn all_pruned(&self, label: &str) -> bool
true when every trial carrying label was pruned.
Trait Implementations§
§impl Clone for BenchReport
impl Clone for BenchReport
§fn clone(&self) -> BenchReport
fn clone(&self) -> BenchReport
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 BenchReport
impl Debug for BenchReport
§impl PartialEq for BenchReport
impl PartialEq for BenchReport
impl StructuralPartialEq for BenchReport
Auto Trait Implementations§
impl Freeze for BenchReport
impl RefUnwindSafe for BenchReport
impl Send for BenchReport
impl Sync for BenchReport
impl Unpin for BenchReport
impl UnsafeUnpin for BenchReport
impl UnwindSafe for BenchReport
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