Skip to content
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.venv
.DS_Store
.coveralls.yml
docs/_build/**
_build/**
Expand Down
44 changes: 27 additions & 17 deletions examples/openai-lander/config
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,48 @@ pop_size = 150
# Note: the fitness threshold will never be reached because
# we are controlling the termination ourselves based on simulation performance.
fitness_criterion = max
fitness_threshold = 1000.0
fitness_threshold = 1950
reset_on_extinction = 0

[LanderGenome]
[DefaultGenome]
num_inputs = 8
num_hidden = 0
num_outputs = 4
initial_connection = partial 0.5
initial_connection = partial_nodirect 0.5
feed_forward = True

compatibility_disjoint_coefficient = 1.0
compatibility_weight_coefficient = 1.0
conn_add_prob = 0.15
conn_delete_prob = 0.1
node_add_prob = 0.15
node_delete_prob = 0.1
activation_default = clamped
activation_options = clamped
compatibility_weight_coefficient = 0.6

conn_add_prob = 0.2
conn_delete_prob = 0.2

node_add_prob = 0.2
node_delete_prob = 0.2
single_structural_mutation = False
structural_mutation_surer = True

activation_default = tanh
activation_options = tanh
activation_mutate_rate = 0.0

aggregation_default = sum
aggregation_options = sum
aggregation_mutate_rate = 0.0

bias_init_mean = 0.0
bias_init_stdev = 1.0
bias_replace_rate = 0.02
bias_mutate_rate = 0.8
bias_mutate_power = 0.4
bias_max_value = 30.0
bias_min_value = -30.0

response_init_mean = 1.0
response_init_stdev = 0.0
response_replace_rate = 0.0
response_mutate_rate = 0.1
response_mutate_power = 0.01
response_mutate_rate = 0.0
response_mutate_power = 0.0
response_max_value = 30.0
response_min_value = -30.0

Expand All @@ -46,8 +55,8 @@ weight_min_value = -30
weight_init_mean = 0.0
weight_init_stdev = 1.0
weight_mutate_rate = 0.8
weight_replace_rate = 0.02
weight_mutate_power = 0.4
weight_replace_rate = 0.1
weight_mutate_power = 0.5
enabled_default = True
enabled_mutate_rate = 0.01

Expand All @@ -56,10 +65,11 @@ compatibility_threshold = 3.0

[DefaultStagnation]
species_fitness_func = mean
max_stagnation = 15
species_elitism = 4
max_stagnation = 50
species_elitism = 2

[DefaultReproduction]
elitism = 2
elitism = 4
survival_threshold = 0.2
trim_dangling_after_n_generations_wo_improvment = 30

74 changes: 74 additions & 0 deletions examples/openai-lander/config-lander-continuous
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# neat-python configuration for the LunarLander-v2 environment on OpenAI Gym

[NEAT]
pop_size = 150
# Note: the fitness threshold will never be reached because
# we are controlling the termination ourselves based on simulation performance.
fitness_criterion = max
fitness_threshold = 1950
reset_on_extinction = 0

[DefaultGenome]
num_inputs = 8
num_hidden = 0
num_outputs = 2
initial_connection = partial_direct 0.5
feed_forward = True

compatibility_disjoint_coefficient = 1.0
compatibility_weight_coefficient = 0.6

conn_add_prob = 0.2
conn_delete_prob = 0.2

node_add_prob = 0.2
node_delete_prob = 0.2
single_structural_mutation = False
structural_mutation_surer = True

activation_default = tanh
activation_options = tanh
activation_mutate_rate = 0.0

aggregation_default = sum
aggregation_options = sum
aggregation_mutate_rate = 0.0

bias_init_mean = 0.0
bias_init_stdev = 1.0
bias_replace_rate = 0.02
bias_mutate_rate = 0.8
bias_mutate_power = 0.4
bias_max_value = 30.0
bias_min_value = -30.0

response_init_mean = 1.0
response_init_stdev = 0.0
response_replace_rate = 0.0
response_mutate_rate = 0.0
response_mutate_power = 0.0
response_max_value = 30.0
response_min_value = -30.0

weight_max_value = 30
weight_min_value = -30
weight_init_mean = 0.0
weight_init_stdev = 1.0
weight_mutate_rate = 0.8
weight_replace_rate = 0.1
weight_mutate_power = 0.5
enabled_default = True
enabled_mutate_rate = 0.0

[DefaultSpeciesSet]
compatibility_threshold = 3.0

[DefaultStagnation]
species_fitness_func = mean
max_stagnation = 50
species_elitism = 2

[DefaultReproduction]
elitism = 2
survival_threshold = 0.2
trim_dangling_after_n_generations_wo_improvment = 40
Loading