pub struct PercentilePruner {
pub percentile: f64,
pub n_warmup_steps: usize,
pub min_trials: usize,
}Expand description
Prune if current value is below the given percentile.
Fields§
§percentile: f64§n_warmup_steps: usize§min_trials: usizeImplementations§
Trait Implementations§
Source§impl Pruner for PercentilePruner
impl Pruner for PercentilePruner
Source§fn should_prune(
&self,
metric_name: &str,
current_value: f64,
step: usize,
history: &[TrialMetricHistory],
) -> Option<String>
fn should_prune( &self, metric_name: &str, current_value: f64, step: usize, history: &[TrialMetricHistory], ) -> Option<String>
Decide whether to prune given the current trial’s metrics and
the history of completed trials’ metrics at the same step. Read more
Auto Trait Implementations§
impl Freeze for PercentilePruner
impl RefUnwindSafe for PercentilePruner
impl Send for PercentilePruner
impl Sync for PercentilePruner
impl Unpin for PercentilePruner
impl UnsafeUnpin for PercentilePruner
impl UnwindSafe for PercentilePruner
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