Skip to content

Commit 45aaeca

Browse files
authored
Merge pull request #113 from HyperCodec/copilot/remove-old-mutation-rate-field
Remove unused `mutation_rate` field from `MutationSettings`
2 parents 9850a6a + 596b6f9 commit 45aaeca

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/neuralnet.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,6 @@ impl<const I: usize, const O: usize> IndexMut<NeuronLocation> for NeuralNetwork<
846846
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
847847
#[derive(Debug, Clone, PartialEq)]
848848
pub struct MutationSettings {
849-
/// The chance of each mutation type to occur.
850-
pub mutation_rate: f32,
851-
852849
/// The maximum amount that the weights will be mutated by in one mutation pass.
853850
pub weight_mutation_amount: f32,
854851

@@ -873,7 +870,6 @@ pub struct MutationSettings {
873870
impl Default for MutationSettings {
874871
fn default() -> Self {
875872
Self {
876-
mutation_rate: 0.01,
877873
weight_mutation_amount: 0.5,
878874
bias_mutation_amount: 0.5,
879875
max_add_retries: 10,

0 commit comments

Comments
 (0)