Instructions to use KaptainKris/HuggingFace_RL_Course with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use KaptainKris/HuggingFace_RL_Course with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="KaptainKris/HuggingFace_RL_Course", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
File size: 1,409 Bytes
06673cf bf1b1e5 06673cf bf1b1e5 06673cf bf1b1e5 06673cf bf1b1e5 06673cf bf1b1e5 06673cf bf1b1e5 06673cf bf1b1e5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | ---
library_name: stable-baselines3
pipeline_tag: reinforcement-learning
tags:
- stable-baselines3
- reinforcement-learning
- deep-reinforcement-learning
- PPO
- LunarLander-v3
---
# PPO agent for LunarLander-v3
This repository contains a Stable-Baselines3 PPO actor–critic agent trained on `LunarLander-v3`.
## Evaluation
Deterministic evaluation over 100 fixed-seed episodes:
| Metric | Value |
|---|---:|
| Mean reward | 280.66 |
| Standard deviation | 34.31 |
| Course-style score (`mean - std`) | 246.34 |
| Episodes scoring at least 200 | 99.0% |
| Minimum reward | 4.31 |
| Maximum reward | 322.05 |
The candidate was compared with the previous Hub model on the same 100 fixed seeds. The selection metric was `mean_reward` and the observed improvement was +12.575.
## Architecture
- Algorithm: PPO
- Policy: MLP actor–critic
- Actor hidden layers: `[128, 128]`
- Critic hidden layers: `[128, 128]`
## Replay
Replay seed: `42`
Replay reward: `266.92`
<video controls autoplay loop muted width="640">
<source src="https://huggingface.co/KaptainKris/HuggingFace_RL_Course/resolve/main/replay.mp4" type="video/mp4">
</video>
## Load the model
```python
from huggingface_hub import hf_hub_download
from stable_baselines3 import PPO
checkpoint = hf_hub_download(
repo_id="KaptainKris/HuggingFace_RL_Course",
filename="ppo-LunarLander-v3.zip",
)
model = PPO.load(checkpoint)
``` |