mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 03:30:19 +01:00
add the first pass of rollout_worker.py
This commit is contained in:
14
rl_coach/rollout_worker.py
Normal file
14
rl_coach/rollout_worker.py
Normal 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()
|
||||||
Reference in New Issue
Block a user