1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 19:20:19 +01:00

add the first pass of rollout_worker.py

This commit is contained in:
Zach Dwiel
2018-09-12 19:53:04 +00:00
committed by zach dwiel
parent 61ed6b8ce4
commit bc664c4169

View File

@@ -0,0 +1,14 @@
from rl_coach.base_parameters import TaskParameters
from rl_coach.core_types import EnvironmentEpisodes, RunPhase
from rl_coach.presets.CartPole_DQN import graph_manager
# TODO: workers might need to define schedules in terms which can be synchronized: exploration(len(distributed_memory)) -> float
def main():
graph_manager.create_graph(TaskParameters())
graph_manager.phase = RunPhase.TRAIN
graph_manager.act(EnvironmentEpisodes(num_steps=10))
if __name__ == '__main__':
main()