pub enum Pruner {
Percentile(Percentile),
Threshold(Threshold),
Patience(Patience),
}Expand description
Whichever of the schemes a pruner is.
Variants§
Percentile(Percentile)
Percentile: behind the others.
Threshold(Threshold)
Threshold: past a bound.
Patience(Patience)
Patience: going nowhere.
Implementations§
Source§impl Pruner
impl Pruner
Sourcepub fn verdict(&self, mine: &[f64], others: &[Vec<f64>]) -> Verdict
pub fn verdict(&self, mine: &[f64], others: &[Vec<f64>]) -> Verdict
Continue, or the reason not to. mine is what this trial has reported so
far, in order; others the same for those that finished. A step is the
n-th report, so trials have to report on the same schedule — true of
every pruner that compares across trials, optuna’s included.
Trait Implementations§
Source§impl From<Percentile> for Pruner
impl From<Percentile> for Pruner
Source§fn from(rule: Percentile) -> Self
fn from(rule: Percentile) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Pruner
Auto Trait Implementations§
impl Freeze for Pruner
impl RefUnwindSafe for Pruner
impl Send for Pruner
impl Sync for Pruner
impl Unpin for Pruner
impl UnsafeUnpin for Pruner
impl UnwindSafe for Pruner
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