pub struct EvolutionaryOptimizationCV { /* private fields */ }Expand description
Evolutionary Optimization hyperparameter optimizer
Implementations§
Source§impl EvolutionaryOptimizationCV
impl EvolutionaryOptimizationCV
Sourcepub fn new(config: OptimizationConfig, search_space: SearchSpace) -> Self
pub fn new(config: OptimizationConfig, search_space: SearchSpace) -> Self
Create a new evolutionary optimization optimizer
Sourcepub fn population_size(self, size: usize) -> Self
pub fn population_size(self, size: usize) -> Self
Builder method to set population size
Sourcepub fn selection_method(self, method: SelectionMethod) -> Self
pub fn selection_method(self, method: SelectionMethod) -> Self
Builder method to set selection method
Sourcepub fn mutation_rate(self, rate: f64) -> Self
pub fn mutation_rate(self, rate: f64) -> Self
Builder method to set mutation rate
Sourcepub fn crossover_rate(self, rate: f64) -> Self
pub fn crossover_rate(self, rate: f64) -> Self
Builder method to set crossover rate
Sourcepub fn elite_ratio(self, ratio: f64) -> Self
pub fn elite_ratio(self, ratio: f64) -> Self
Builder method to set elite ratio
Auto Trait Implementations§
impl Freeze for EvolutionaryOptimizationCV
impl RefUnwindSafe for EvolutionaryOptimizationCV
impl Send for EvolutionaryOptimizationCV
impl Sync for EvolutionaryOptimizationCV
impl Unpin for EvolutionaryOptimizationCV
impl UnwindSafe for EvolutionaryOptimizationCV
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more