products:ict:python:machine_learning:openai_gym
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:ict:python:machine_learning:openai_gym [2023/10/12 17:50] – created wikiadmin | products:ict:python:machine_learning:openai_gym [2023/10/12 17:51] (current) – wikiadmin | ||
---|---|---|---|
Line 36: | Line 36: | ||
- | observation = env.reset() | + | observation = env.reset() |
- | for t in range(max_timesteps): | + | |
+ | for t in range(max_timesteps): | ||
action = agent.select_action(observation) | action = agent.select_action(observation) | ||
+ | |||
observation, | observation, | ||
+ | |||
if done: | if done: | ||
+ | |||
break | break | ||
+ | |||
5. **Custom Environments**: | 5. **Custom Environments**: |
products/ict/python/machine_learning/openai_gym.1697115013.txt.gz · Last modified: 2023/10/12 17:50 by wikiadmin