dmenini commited on
Commit
ef53c60
1 Parent(s): af8e2f7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -0
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
  ```