pub struct Percentile {
pub p: f64,
pub goal: Goal,
pub warmup: usize,
pub startup: usize,
}Expand description
Prune what is doing worse at this step than p percent of the others.
The median pruner is p = 50, which is why there is no Median scheme —
median is a constructor. What is compared is each
trial’s best so far and not its latest: one bad epoch is noise.
Fields§
§p: f64Between 0 and 100, and the share that is kept — a smaller one
prunes more, the way round optuna reads it. At 50 the better half
survives; at 0 everything but the best does not.
goal: GoalWhich way is better.
warmup: usizeNo verdict before this many reports, however bad it looks. What buys a slow starter the epochs it needs.
startup: usizeNo verdict until this many other trials have reached this step. Without it the first trial to finish becomes the bar for everybody.
Implementations§
Trait Implementations§
Source§impl Clone for Percentile
impl Clone for Percentile
Source§fn clone(&self) -> Percentile
fn clone(&self) -> Percentile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Percentile
impl Debug for Percentile
Source§impl Display for Percentile
impl Display for Percentile
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.
Source§impl PartialEq for Percentile
impl PartialEq for Percentile
impl StructuralPartialEq for Percentile
Auto Trait Implementations§
impl Freeze for Percentile
impl RefUnwindSafe for Percentile
impl Send for Percentile
impl Sync for Percentile
impl Unpin for Percentile
impl UnsafeUnpin for Percentile
impl UnwindSafe for Percentile
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