Comparing version 0.2.5 to 0.2.6
@@ -64,4 +64,6 @@ "use strict"; | ||
if (this.config.keepFittest) { | ||
generation.individuals.push(individuals[0]); | ||
generation.individuals.push(individuals[0].evolve()); | ||
const individual = Math.random() <= this.config.mutation | ||
? individuals[0].evolve() | ||
: individuals[0]; | ||
generation.individuals.push(individual); | ||
} | ||
@@ -68,0 +70,0 @@ const select = new utils_1.Select(this.config.optimize); |
{ | ||
"name": "evjs", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Generic genetic/evolution algorithm in JS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36243
486