File size: 1,751 Bytes
162021c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
library_name: ml-agents
tags:
- ml-agents
- reinforcement-learning
- ML-Agents-Pyramids
model-index:
- name: ppo-Pyramids
  results:
  - task:
      type: reinforcement-learning
      name: reinforcement-learning
    dataset:
      name: ML-Agents-Pyramids
      type: ML-Agents-Pyramids
    metrics:
    - type: mean_reward
      value: -0.9999999310821295 +/- 0.0
      name: mean_reward
---
# PPO Pyramids

Trained from random initialization by Kay Zheng (bestdive), with AI coding and execution assistance, for the Hugging Face Deep RL course. No pretrained policy or fabricated evaluation metrics were used. Training used free Colab CPU, seed 42, ML-Agents 1.1.0, and 100096 environment steps.

This introductory policy has not solved the sparse-reward task; all evaluation returns are approximately -1. The course Unit 5 criterion requires submission of a genuinely trained model, without a minimum reward.

## Independent evaluation

112 completed episodes, new environment seed 100002, deterministic ONNX actions. Mean reward -0.9999999310821295, population standard deviation 0.0. See evaluation.json for every episode return and evaluate_unity.py for the evaluation procedure. All agents terminating in the final vector batch were retained.

## Reproduction

Python 3.10.12, mlagents==1.1.0, torch==2.2.2, onnx==1.15.0, setuptools<81, onnxruntime. Download the environment from the official course Unit 5 hands-on. Train with:

```sh
mlagents-learn training-config.yaml --env=PATH_TO_ENV --run-id=Kay-Pyramids --results-dir=results --no-graphics --seed=42 --torch-device=cpu
```

The configuration, training log, ONNX checkpoint, and independent evaluation are included. Model performance is limited to this simulated task.