Team Ai
Modelpublic

KraTUZen/ppo-PyramidsTraining

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes104downloads
Model Card

๐Ÿ›๏ธ PPO Agent on Pyramids

This repository contains a trained Proximal Policy Optimization (PPO) agent that plays the Pyramids environment using the Unity ML-Agents Library.


๐Ÿ“Š Model Card

Model Name: ppo-PyramidsTraining Environment: Pyramids (Unity ML-Agents) Algorithm: PPO (Proximal Policy Optimization) Performance Metric:

  • โ€”Achieves stable performance in navigating and solving pyramid-based tasks
  • โ€”Demonstrates convergence to an effective policy

๐Ÿš€ Usage (with ML-Agents)

Documentation: ML-Agents Toolkit Docs

Resume Training

bash
mlagents-learn <your_configuration_file_path.yaml> --run-id=<run_id> --resume

Load and Run

python
# Example: loading the trained PPO model
# (requires Unity ML-Agents setup)
model_id = "KraTUZen/ppo-PyramidsTraining"
# Select your .nn or .onnx file from the repo

๐Ÿง  Notes

  • โ€”The agent is trained using PPO, a robust on-policy algorithm widely used in Unity ML-Agents.
  • โ€”The environment involves pyramid navigation and puzzle-solving, requiring precision and strategy.
  • โ€”The trained model is stored as .nn or .onnx files for direct Unity integration.

๐Ÿ“‚ Repository Structure

  • โ€”Pyramids.nn / Pyramids.onnx โ†’ Trained PPO policy
  • โ€”README.md โ†’ Documentation and usage guide

โœ… Results

  • โ€”The agent learns to navigate pyramid structures and solve tasks efficiently.
  • โ€”Demonstrates stable training and effective policy convergence using PPO.

๐Ÿ”Ž Environment Overview

  • โ€”Observation Space: Continuous (agent position, pyramid state, environment features)
  • โ€”Action Space: Continuous (movement, interaction)
  • โ€”Objective: Solve pyramid-based tasks and maximize rewards
  • โ€”Reward: Positive reward for successful task completion, penalties for failures

๐Ÿ“š Learning Highlights

  • โ€”Algorithm: PPO (Proximal Policy Optimization)
  • โ€”Update Rule: Clipped surrogate objective to ensure stable updates
  • โ€”Strengths: Robust, stable, widely used in Unity ML-Agents
  • โ€”Limitations: Requires careful tuning of hyperparameters (clip ratio, learning rate, batch size)

๐ŸŽฎ Watch Your Agent Play

You can watch your agent directly in your browser:

  1. 1.Visit Unity ML-Agents on Hugging Face
  2. 2.Find your model ID: KraTUZen/ppo-PyramidsTraining
  3. 3.Select your .nn or .onnx file
  4. 4.Click Watch the agent play ๐Ÿ‘€