Update README.md
Browse files
README.md
CHANGED
@@ -42,4 +42,11 @@ model = PPO.load(checkpoint)
|
|
42 |
|
43 |
env = gym.make("LunarLander-v2")
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
```
|
|
|
42 |
|
43 |
env = gym.make("LunarLander-v2")
|
44 |
|
45 |
+
# Evaluate the agent and watch it
|
46 |
+
eval_env = gym.make("LunarLander-v2")
|
47 |
+
mean_reward, std_reward = evaluate_policy(
|
48 |
+
model, eval_env, render=True, n_eval_episodes=5, deterministic=True, warn=False
|
49 |
+
)
|
50 |
+
print(f"mean_reward={mean_reward:.2f} +/- {std_reward}")
|
51 |
+
|
52 |
```
|