1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 19:20:19 +01:00
Files
coach/rl_coach/rollout_worker.py
2018-10-23 16:40:33 -04:00

15 lines
500 B
Python

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()