Struct MfReport
pub struct MfReport {
pub label: String,
pub units_spent: u64,
pub trials: Vec<MfTrial>,
pub incumbent_true: f64,
pub curve: Vec<(u64, f64)>,
}Expand description
What one search run achieved, in resource units.
Fields§
§label: StringA short label for the searcher (dehb, random, tpe, …).
units_spent: u64Total fidelity units spent — the sum over trials of the budget each ran to. This is the axis every comparison here is matched on.
trials: Vec<MfTrial>Every trial, in trial order.
incumbent_true: f64The true value of the incumbent — the best configuration this run
evaluated at the full budget. f64::INFINITY if it never reached the top
fidelity.
curve: Vec<(u64, f64)>(cumulative units, incumbent true value) after every trial, in trial
order. The curve both claims are read off.
Implementations§
§impl MfReport
impl MfReport
pub fn units_to_reach(&self, target: f64) -> Option<u64>
pub fn units_to_reach(&self, target: f64) -> Option<u64>
The fewest units at which the incumbent was already at least as good as
target — None if the run never reached it.
The budget-efficiency answer: “how much compute did this searcher need to match that quality”.
pub fn evaluations(&self) -> usize
pub fn evaluations(&self) -> usize
How many trials ran.
pub fn evaluations_at(&self, fidelity: u64) -> usize
pub fn evaluations_at(&self, fidelity: u64) -> usize
How many trials ran at exactly fidelity.
Trait Implementations§
impl StructuralPartialEq for MfReport
Auto Trait Implementations§
impl Freeze for MfReport
impl RefUnwindSafe for MfReport
impl Send for MfReport
impl Sync for MfReport
impl Unpin for MfReport
impl UnsafeUnpin for MfReport
impl UnwindSafe for MfReport
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
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> ⓘ
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> ⓘ
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