Downloads · 30 days
3
4% of all-time downloads
ginnigarg/ginni-ppo-LunarLander-v2
ginni-ppo-LunarLander-v2 is a reinforcement learning model from ginnigarg. 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. The card lists the license as mit.
This repository contains a Reinforcement Learning (RL) model trained to safely land a spacecraft in the LunarLander-v2 environment.
Downloads · 30 days
3
4% of all-time downloads
All-time downloads
73
Public
Repo size
411 KB
Likes
0
Public
Click a slice to open those files.
.zip149 KB · 34%
From the Hugging Face model README
This repository contains a Reinforcement Learning (RL) model trained to safely land a spacecraft in the LunarLander-v2 environment.
Even if you are completely new to Reinforcement Learning, this README will help you understand:
This project trains an AI agent to land a spacecraft safely on the moon.
The spacecraft must:
The agent learns by trial and error — just like a human learning a video game.
Reinforcement Learning (RL) is a type of Machine Learning where:
Think of it like training a dog:
Over time, the agent learns the best strategy.
LunarLander is a simulation environment from Gymnasium.
The goal:
The agent receives:
The agent receives 8 values:
| Index | Meaning |
|---|---|
| 0 | Horizontal position |
| 1 | Vertical position |
| 2 | Horizontal velocity |
| 3 | Vertical velocity |
| 4 | Angle |
| 5 | Angular velocity |
| 6 | Left leg touching ground (0 or 1) |
| 7 | Right leg touching ground (0 or 1) |
These numbers describe the spacecraft’s current state.
There are 4 possible actions:
| Action | Meaning |
|---|---|
| 0 | Do nothing |
| 1 | Fire left engine |
| 2 | Fire main engine |
| 3 | Fire right engine |
The agent must choose the correct action at each time step.
PPO is a popular and stable Reinforcement Learning algorithm.
Why PPO?
It updates the policy in small safe steps to avoid instability.
PPO(
policy="MlpPolicy",
n_steps=1024,
batch_size=64,
n_epochs=4,
gamma=0.999,
gae_lambda=0.98,
ent_coef=0.01,
verbose=1
)