pub struct Neat { /* private fields */ }
Expand description
Structure for NEAT simulation state
Implementations§
Source§impl Neat
impl Neat
Sourcepub fn from_params(params: NeatParams) -> Neat
pub fn from_params(params: NeatParams) -> Neat
Create a NEAT state with the given hyperparmeters
pub fn population_size(&self) -> usize
pub fn delta_c1(&self) -> f64
pub fn delta_c2(&self) -> f64
pub fn delta_c3(&self) -> f64
pub fn delta_threshold(&self) -> f64
pub fn species_death_time(&self) -> usize
pub fn champion_copy_size(&self) -> usize
pub fn weight_mutation_chance(&self) -> f64
pub fn weight_reset_chance(&self) -> f64
pub fn disable_chance(&self) -> f64
pub fn no_crossover_chance(&self) -> f64
pub fn interspecies_mating_rate(&self) -> f64
pub fn new_neuron_chance(&self) -> f64
pub fn new_weight_chance(&self) -> f64
pub fn survival_threshold(&self) -> f64
Auto Trait Implementations§
impl Freeze for Neat
impl RefUnwindSafe for Neat
impl Send for Neat
impl Sync for Neat
impl Unpin for Neat
impl UnwindSafe for Neat
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