pub enum SearchStrategy {
Grid {
points_per_dim: usize,
},
Random {
n_trials: usize,
seed: Option<u64>,
},
Bayesian {
n_trials: usize,
n_startup: usize,
seed: Option<u64>,
},
Hyperband {
max_resource: usize,
reduction_factor: usize,
},
MultiObjective {
n_trials: usize,
objectives: Vec<Objective>,
},
}Expand description
Search strategy for hyperparameter optimization.
Variants§
Grid
Exhaustive grid search.
Random
Random sampling.
Bayesian
Bayesian optimization (TPE).
Hyperband
Successive halving with early stopping.
MultiObjective
Multi-objective optimization.
Implementations§
Trait Implementations§
Source§impl Clone for SearchStrategy
impl Clone for SearchStrategy
Source§fn clone(&self) -> SearchStrategy
fn clone(&self) -> SearchStrategy
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 SearchStrategy
impl Debug for SearchStrategy
Source§impl<'de> Deserialize<'de> for SearchStrategy
impl<'de> Deserialize<'de> for SearchStrategy
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 SearchStrategy
impl RefUnwindSafe for SearchStrategy
impl Send for SearchStrategy
impl Sync for SearchStrategy
impl Unpin for SearchStrategy
impl UnsafeUnpin for SearchStrategy
impl UnwindSafe for SearchStrategy
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