pub trait Sampler: Send + Sync {
// Required methods
fn sample(
&mut self,
space: &SearchSpace,
trial_index: usize,
) -> Result<Option<HashMap<String, Value>>>;
fn n_trials(&self) -> Option<usize>;
}Expand description
A sampler produces hyperparameter configurations from a search space.