Skip to content

Commit

Permalink
Merge 59e6370 into 0b7f5ed
Browse files Browse the repository at this point in the history
  • Loading branch information
guzuligo committed Oct 16, 2020
2 parents 0b7f5ed + 59e6370 commit 2777cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neat.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ const Neat = function(inputs, outputs, dataset, options) {

// Elitism, assumes population is sorted by fitness
const elitists = []
for (let i = 0; i < self.elitism; i++) elitists.push(population[i].clone())
for (let i = 0; i < self.elitism; i++) elitists.unshift(population[i].clone())

// Provenance
const new_population = []
Expand Down

0 comments on commit 2777cdf

Please sign in to comment.