mirror of
https://github.com/huggingface/deep-rl-class.git
synced 2026-11-06 07:17:49 +08:00
Update units/en/unit1/hands-on.mdx
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
This commit is contained in:
@@ -357,6 +357,7 @@ env = gym.make('LunarLander-v2')
|
||||
|
||||
# Instantiate the agent
|
||||
model = PPO('MlpPolicy', env, verbose=1)
|
||||
|
||||
# Train the agent
|
||||
model.learn(total_timesteps=int(2e5))
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user