Views
No views yet
LunarLander-v3results.json)251.3235.211,000,000247–2483515263e-40.20.003–0.0040.992–0.993Note:ep_rew_meanis the rolling training reward; the evaluation reward above is measured separately over 10 episodes.
pip install stable-baselines3 swig gymnasium[box2d]1import gymnasium as gym
2from stable_baselines3 import PPO
3
4model = PPO.load("ppo_lunarlander") # replace with your actual model filename in this repo
5
6env = gym.make("LunarLander-v3", render_mode="human") # use "rgb_array" for headless rendering
7obs, info = env.reset()
8
9done = False
10while not done:
11 action, _ = model.predict(obs, deterministic=True)
12 obs, reward, terminated, truncated, info = env.step(action)
13 done = terminated or truncated
14
15env.close()
16
17