Skip to content

Commit

Permalink
Ensure that when Neat mutation replaces connection weights they range…
Browse files Browse the repository at this point in the history
… from -1 to 1
  • Loading branch information
christianechevarria committed Jan 11, 2020
1 parent 355a86e commit 824d8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/architecture/population.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Population = function(options) {
* @return {Network} A network mutated by the Neat mutation spec.
*
* @todo Remove hard-coded chance thresholds
* @todo Consider making this a specialized mutate function: `neatMutate`
* @todo Consider making this a specialized mutate function: `neatMutate`
*/
self.mutate = function (network, options={ neat: true }) {
// Just do 1 random, if Math.random() is truly random then it should be equivalent to doing individual "Math.random()"s
Expand Down

0 comments on commit 824d8e8

Please sign in to comment.