Skip to main content

batch_mutate_weights

Function batch_mutate_weights 

Source
pub fn batch_mutate_weights(
    genomes: &mut [Vec<f64>],
    mutation_rate: f64,
    mutation_scale: f64,
    seed: u64,
)
Expand description

Mutate weights in-place with Gaussian noise (parallelized for large populations).

Each genome is a flat f64 slice. mutation_rate is probability per weight.