ppo-Pyramids / README.md
rabitrabi's picture
Publish trained Pyramids policy and 128-episode evaluation
55e76fc verified
|
Raw History Blame Contribute Delete
1.99 kB
---
library_name: ml-agents
tags:
- reinforcement-learning
- deep-reinforcement-learning
- deep-rl-course
- ml-agents
- Pyramids
- ML-Agents-Pyramids
- onnx
model-index:
- name: PPO Pyramids
results:
- task:
type: reinforcement-learning
name: Reinforcement Learning
dataset:
type: Pyramids
name: Pyramids
metrics:
- type: mean_reward
name: Mean reward
value: -0.867337 +/- 0.555230
---
# PPO on Pyramids
This Unity ML-Agents 1.1.0 policy was trained from scratch on CPU for the Hugging Face Deep Reinforcement Learning Course with a 524,288-step budget. The first 65,841 steps used seed 42 and the resumed run used seed 43. Four checkpoints were compared by sampled-policy mean return at validation seed 2025. The top-level ONNX file is the selected 130,976-step checkpoint.
## Evaluation
The exported ONNX policy sampled actions in four fresh Unity sessions with seeds 2026–2029 (32 completed episodes each). Across the 128 completed episodes, the mean return was **-0.867** and the population standard deviation was **0.555**. Training used the random network distillation curiosity bonus. Evaluation measures the original environment rewards. The sampled policy collected gold in 7 of 128 episodes. The deterministic policy collected gold in 0 of 128 episodes and scored -1.000 ± 0.000. Individual returns are in `evaluation.json`.
## Reproduce
Use Python 3.10.12, Unity ML-Agents 1.1.0, CPU PyTorch 2.2.2, ONNX 1.15.0 and ONNX Runtime 1.18.1. Download the Linux simulator linked in [course unit 5](https://huggingface.co/learn/deep-rl-course/en/unit5/hands-on).
```bash
mlagents-learn Pyramids-initial.yaml --env=/path/to/Pyramids --run-id=Pyramids --no-graphics --seed=42 --time-scale=64 --torch-device=cpu
mlagents-learn Pyramids.yaml --env=/path/to/Pyramids --run-id=Pyramids --no-graphics --resume --seed=43 --time-scale=64 --torch-device=cpu
python evaluate.py Pyramids /path/to/Pyramids 6360 --seed=2026 --episodes=32
```