Skip to content

Check for range of values #3

@ngupta23

Description

@ngupta23

Inside the mutation function, you are adding random values to the genes. This can cause the gene values to drift over time and in one of my examples, it is causing the value to go beyond the initial range of [-4, 4].

Maybe some checks need to be added for the range of acceptable values for example, instead of adding a random value between -1 and 1, maybe you can just pick a random value from the original range and use that as the mutated value.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions