Skip to content

Commit e4d49a4

Browse files
committed
genetic evolution, inital implementation
1 parent 19b16e3 commit e4d49a4

File tree

4 files changed

+281
-58
lines changed

4 files changed

+281
-58
lines changed

.idea/inspectionProfiles/Project_Default.xml

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

+73-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

atari.py

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ def __init__(self):
2020
self._main_loop(self._game_model(game_mode, game_name, env.action_space.n), env, render, total_step_limit, total_run_limit, clip)
2121

2222
def _main_loop(self, game_model, env, render, total_step_limit, total_run_limit, clip):
23+
if isinstance(game_model, GETrainer):
24+
game_model.genetic_evolution(env)
25+
2326
run = 0
2427
total_step = 0
2528
while True:

0 commit comments

Comments
 (0)