pub struct HyperParametersBuilder<C>where
C: Core,{ /* private fields */ }Expand description
Builder for HyperParameters.
Implementations§
Source§impl<C> HyperParametersBuilder<C>
impl<C> HyperParametersBuilder<C>
pub fn default_fitness(&mut self, value: f64) -> &mut Self
pub fn population_size(&mut self, value: usize) -> &mut Self
pub fn gap(&mut self, value: f64) -> &mut Self
pub fn mutation_percent(&mut self, value: f64) -> &mut Self
pub fn crossover_percent(&mut self, value: f64) -> &mut Self
pub fn n_generations(&mut self, value: usize) -> &mut Self
pub fn n_trials(&mut self, value: usize) -> &mut Self
pub fn seed(&mut self, value: Option<u64>) -> &mut Self
pub fn n_threads(&mut self, value: Option<usize>) -> &mut Self
pub fn program_parameters(&mut self, value: C::ProgramParameters) -> &mut Self
Sourcepub fn build(&self) -> Result<HyperParameters<C>, HyperParametersBuilderError>
pub fn build(&self) -> Result<HyperParameters<C>, HyperParametersBuilderError>
Trait Implementations§
Source§impl<C> Clone for HyperParametersBuilder<C>
impl<C> Clone for HyperParametersBuilder<C>
Source§fn clone(&self) -> HyperParametersBuilder<C>
fn clone(&self) -> HyperParametersBuilder<C>
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 moreAuto Trait Implementations§
impl<C> Freeze for HyperParametersBuilder<C>
impl<C> RefUnwindSafe for HyperParametersBuilder<C>
impl<C> Send for HyperParametersBuilder<C>
impl<C> Sync for HyperParametersBuilder<C>
impl<C> Unpin for HyperParametersBuilder<C>
impl<C> UnsafeUnpin for HyperParametersBuilder<C>
impl<C> UnwindSafe for HyperParametersBuilder<C>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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