Reinforcement Learning
ml-agents
TensorBoard
ONNX
Pyramids
deep-reinforcement-learning
ML-Agents-Pyramids
Instructions to use AnnaMats/ppo-Pyramids-Training with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ml-agents
How to use AnnaMats/ppo-Pyramids-Training with ml-agents:
mlagents-load-from-hf --repo-id="AnnaMats/ppo-Pyramids-Training" --local-dir="./download: string[]s"
- Notebooks
- Google Colab
- Kaggle
| //Detect when the orange block has touched the goal. | |
| //Detect when the orange block has touched an obstacle. | |
| //Put this script onto the orange block. There's nothing you need to set in the editor. | |
| //Make sure the goal is tagged with "goal" in the editor. | |
| using UnityEngine; | |
| public class GoalDetect : MonoBehaviour | |
| { | |
| /// <summary> | |
| /// The associated agent. | |
| /// This will be set by the agent script on Initialization. | |
| /// Don't need to manually set. | |
| /// </summary> | |
| [] | |
| public PushAgentBasic agent; // | |
| void OnCollisionEnter(Collision col) | |
| { | |
| // Touched goal. | |
| if (col.gameObject.CompareTag("goal")) | |
| { | |
| agent.ScoredAGoal(); | |
| } | |
| } | |
| } | |