diff --git a/EvolutionStrategies/Experiments/12_1_50_decaying_decaying_300/12_1_50_0.03.png b/EvolutionStrategies/Experiments/12_1_50_decaying_decaying_300/12_1_50_0.03.png new file mode 100644 index 0000000000000000000000000000000000000000..57c96e0c1c3717689d4e3554ddcce5252adf3e91 Binary files /dev/null and b/EvolutionStrategies/Experiments/12_1_50_decaying_decaying_300/12_1_50_0.03.png differ diff --git a/EvolutionStrategies/Experiments/12_1_50_decaying_decaying_300/12_1_50_decaying_decaying_300.png b/EvolutionStrategies/Experiments/12_1_50_decaying_decaying_300/12_1_50_decaying_decaying_300.png new file mode 100644 index 0000000000000000000000000000000000000000..42ad9a238afb9c0f340f1455167d5519aaf1b96c Binary files /dev/null and b/EvolutionStrategies/Experiments/12_1_50_decaying_decaying_300/12_1_50_decaying_decaying_300.png differ diff --git a/EvolutionStrategies/Experiments/12_1_50_decaying_decaying_300/300.p b/EvolutionStrategies/Experiments/12_1_50_decaying_decaying_300/300.p new file mode 100644 index 0000000000000000000000000000000000000000..48f8d9a5ed2624552df556a98f5c594892f82309 Binary files /dev/null and b/EvolutionStrategies/Experiments/12_1_50_decaying_decaying_300/300.p differ diff --git a/EvolutionStrategies/main.py b/EvolutionStrategies/main.py index d8edb31c9be91589f691c530ad26b18c08429a30..402634f1e644c8803a14eeab3a2c6af8f1cc12d6 100644 --- a/EvolutionStrategies/main.py +++ b/EvolutionStrategies/main.py @@ -9,12 +9,12 @@ BIAS = False POP_SIZE = 50 MUTATION_FACTOR = 0.1 # 0 <= x <= 1 LEARNING_RATE = 0.03 # 0 <= x <= 1 -GENS = 7000 +GENS = 10000 MAX_STEPS = 300 # after 1600 steps the Environment gives us a done anyway. DECAY_ALPHA = True VERSION = 100 -TEST_WALKER = False +TEST_WALKER = True LOAD_BRAIN = False RENDER_BEST = False if TEST_WALKER: diff --git a/MutateActions/main.py b/MutateActions/main.py index 794b6703d6703775adb3096dcedafccdab5048ed..227c990b1bcbd4552c186778bf02fe4729396d96 100644 --- a/MutateActions/main.py +++ b/MutateActions/main.py @@ -10,7 +10,7 @@ MUTATION_FACTOR = 0.2 # 0 <= x <= 1 GAME_CANCELLED = False LOAD_BRAIN = False RENDER_BEST = False -TEST_WALKER = False +TEST_WALKER = True if TEST_WALKER: LOAD_BRAIN = True @@ -27,8 +27,9 @@ if __name__ == '__main__': plt.title(f'{POP_SIZE}, {MUTATION_FACTOR}') plt.xlabel('Episodes') plt.ylabel('Rewards') - plt.plot(rewards) - plt.plot(steps) + plt.plot(rewards, label='Rewards') + plt.plot(steps, label='Steps') + plt.legend(loc='right') plt.savefig(f'./models/{POP_SIZE}, {MUTATION_FACTOR}.png') plt.show() sys.exit(0)