We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b1647 commit f6e9e03Copy full SHA for f6e9e03
src/Gep.jl
@@ -471,7 +471,7 @@ function runGep(epochs::Int,
471
472
if epoch < epochs
473
fits_representation = [chromo.fitness for chromo in population]
474
- indices = basic_tournament_selection(fits_representation, tourni_size, mating_size)
+ indices = basic_tournament_selection(fits_representation[1:mating_size], tourni_size, mating_size)
475
parents = population[indices]
476
@inbounds Threads.@threads for i in 1:2:mating_size-1
477
next_gen[i] = parents[i]
0 commit comments