pub struct SkipAfter {
pub metric: String,
pub threshold: f64,
pub along: String,
/* private fields */
}Expand description
Skip the rest of a sweep once an error rate is below a floor.
After a condition whose metric is below threshold (with at least one trial), the
later conditions that have the same values on every key except along are skipped.
The grid should list the values of along in the direction of decreasing error
rates (increasing SNR), which is the case when along is its last axis.
Fields§
§metric: StringThe error-rate metric.
threshold: f64The floor.
along: StringThe swept key.
Implementations§
Trait Implementations§
Source§impl Callback for SkipAfter
impl Callback for SkipAfter
Source§fn on_condition_start(&mut self, _: usize, c: &Condition) -> Action
fn on_condition_start(&mut self, _: usize, c: &Condition) -> Action
Before a condition:
Action::Skip does not run it.Source§fn on_condition_end(&mut self, r: &ConditionResult) -> Action
fn on_condition_end(&mut self, r: &ConditionResult) -> Action
After a condition (run or skipped):
Action::StopRun ends the run.Source§fn on_run_start(&mut self, _info: &RunInfo)
fn on_run_start(&mut self, _info: &RunInfo)
Before the first condition.
Source§fn on_batch_end(&mut self, _progress: &Progress<'_>) -> Action
fn on_batch_end(&mut self, _progress: &Progress<'_>) -> Action
After every batch of trials:
Action::StopCondition stops the condition.Source§fn on_run_end(&mut self, _results: &[ConditionResult])
fn on_run_end(&mut self, _results: &[ConditionResult])
After the last condition.
Auto Trait Implementations§
impl Freeze for SkipAfter
impl RefUnwindSafe for SkipAfter
impl Send for SkipAfter
impl Sync for SkipAfter
impl Unpin for SkipAfter
impl UnsafeUnpin for SkipAfter
impl UnwindSafe for SkipAfter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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