Skip to content

Commit

Permalink
Remove tournament_size param from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikMettler committed Jan 6, 2021
1 parent 057b70f commit c12ef3f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/example_hurdles.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def objective_two(individual):
# the (n+1)th objective by a list of numbers between 0 and 1.
ea_params = {
"n_offsprings": 4,
"tournament_size": 2,
"n_processes": 1,
"hurdle_percentile": [0.5, 0.0],
}
Expand Down
2 changes: 1 addition & 1 deletion examples/example_multi_genome.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def objective(individual):
}
genome_params = [single_genome_params, single_genome_params]

ea_params = {"n_offsprings": 4, "tournament_size": 2, "n_processes": 1}
ea_params = {"n_offsprings": 4, "n_processes": 1}

evolve_params = {"max_generations": int(args["--max-generations"]), "min_fitness": 0.0}

Expand Down
2 changes: 1 addition & 1 deletion examples/example_piecewise_target_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def objective(individual, rng):
"primitives": (cgp.IfElse, cgp.Mul, cgp.Add, cgp.Sub, cgp.ConstantFloat,),
}

ea_params = {"n_offsprings": 4, "tournament_size": 2, "n_processes": 2}
ea_params = {"n_offsprings": 4, "n_processes": 2}

evolve_params = {"max_generations": int(args["--max-generations"]), "min_fitness": 0.0}

Expand Down
2 changes: 1 addition & 1 deletion examples/example_reorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def objective(individual):
"primitives": (cgp.Add, cgp.Sub, cgp.Mul, cgp.ConstantFloat),
}

ea_params = {"n_offsprings": 4, "tournament_size": 2, "n_processes": 2}
ea_params = {"n_offsprings": 4, "n_processes": 2}
ea_params_with_reorder = {
"n_offsprings": 4,
"tournament_size": 2,
Expand Down

0 comments on commit c12ef3f

Please sign in to comment.