Instructions to use Prabhat17/ppo-LunarLander-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use Prabhat17/ppo-LunarLander-v2 with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="Prabhat17/ppo-LunarLander-v2", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
PPO LunarLander-v2
This repository contains a Proximal Policy Optimization (PPO) agent trained using Stable-Baselines3.
Evaluation results
The agent was evaluated over 10 episodes using deterministic action selection.
| Metric | Value |
|---|---|
| Mean reward | 224.86 |
| Standard deviation | 24.08 |
| Mean reward minus standard deviation | 200.78 |
| Evaluation episodes | 10 |
Environment compatibility
Important: The model was trained and evaluated using Gymnasium LunarLander-v3. It has not been trained or evaluated using LunarLander-v2.
The results above are self-reported results from the LunarLander-v3 environment and have not been independently verified for LunarLander-v2.
Model file
The trained model is available in this repository as ppo-lunarlander.zip.
Usage
import gymnasium as gym
from stable_baselines3 import PPO
env = gym.make("LunarLander-v3")
model = PPO.load("ppo-lunarlander.zip")
observation, info = env.reset()
terminated = False
truncated = False
while not (terminated or truncated):
action, _ = model.predict(observation, deterministic=True)
observation, reward, terminated, truncated, info = env.step(action)
env.close()
- Downloads last month
- 7
Evaluation results
- Mean reward on LunarLander-v2self-reported224.860