Downloads · 30 days
1
2% of all-time downloads
zozo-dejante/ppo-LunarLander-v3
ppo-LunarLander-v3 is a reinforcement learning model from zozo-dejante. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. It is set up for stable-baselines3.
This is a trained model of a PPO agent playing LunarLander-v3 using the stable-baselines3 library.
Downloads · 30 days
1
2% of all-time downloads
All-time downloads
60
Public
Repo size
441 KB
Likes
0
Public
Click a slice to open those files.
.mp4156 KB · 33%
From the Hugging Face model README
This is a trained model of a PPO agent playing LunarLander-v3 using the stable-baselines3 library.
import gymnasium as gym
from stable_baselines3 import PPO
from huggingface_sb3 import load_from_hub
model = PPO.load(
load_from_hub("zozo-dejante/ppo-LunarLander-v3", "ppo_LunarLander.zip")
)
test_env = gym.make("LunarLander-v3", render_mode="human", max_episode_steps=400)
observation, _info = test_env.reset()
while True:
action, _states = model.predict(observation)
observation, reward, terminated, truncated, info = test_env.step(action)
test_env.render()
if terminated or truncated:
observation, _info = test_env.reset()