pub enum PruningStrategy {
None,
Median {
n_warmup_steps: usize,
},
Percentile {
percentile: f64,
n_warmup_steps: usize,
},
Hyperband,
}Expand description
Pruning strategy for early stopping of unpromising trials.
Variants§
None
No pruning.
Median
Prune if metric is below median of completed trials at same step.
Fields
Percentile
Prune if metric is below given percentile.
Fields
§
percentile: f64Percentile (0–100) of completed trials’ values at the same
step the trial must reach to survive. 50.0 is
PruningStrategy::Median.
Hyperband
Bracket-based pruning (used with Hyperband). Declared for
forward compatibility: the StudyRunner currently builds no
pruner for it, so it behaves like PruningStrategy::None.
Trait Implementations§
Source§impl Clone for PruningStrategy
impl Clone for PruningStrategy
Source§fn clone(&self) -> PruningStrategy
fn clone(&self) -> PruningStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PruningStrategy
impl Debug for PruningStrategy
Source§impl<'de> Deserialize<'de> for PruningStrategy
impl<'de> Deserialize<'de> for PruningStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PruningStrategy
impl RefUnwindSafe for PruningStrategy
impl Send for PruningStrategy
impl Sync for PruningStrategy
impl Unpin for PruningStrategy
impl UnsafeUnpin for PruningStrategy
impl UnwindSafe for PruningStrategy
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