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
| using UnityEngine; | |
| using UnityEngine.Events; | |
| public class GoalDetectTrigger : MonoBehaviour | |
| { | |
| [] | |
| public string tagToDetect = "goal"; //collider tag to detect | |
| [] | |
| public float GoalValue = 1; | |
| private Collider m_col; | |
| [] | |
| public class TriggerEvent : UnityEvent<Collider, float> | |
| { | |
| } | |
| [] | |
| public TriggerEvent onTriggerEnterEvent = new TriggerEvent(); | |
| public TriggerEvent onTriggerStayEvent = new TriggerEvent(); | |
| public TriggerEvent onTriggerExitEvent = new TriggerEvent(); | |
| private void OnTriggerEnter(Collider col) | |
| { | |
| if (col.CompareTag(tagToDetect)) | |
| { | |
| onTriggerEnterEvent.Invoke(m_col, GoalValue); | |
| } | |
| } | |
| private void OnTriggerStay(Collider col) | |
| { | |
| if (col.CompareTag(tagToDetect)) | |
| { | |
| onTriggerStayEvent.Invoke(m_col, GoalValue); | |
| } | |
| } | |
| private void OnTriggerExit(Collider col) | |
| { | |
| if (col.CompareTag(tagToDetect)) | |
| { | |
| onTriggerExitEvent.Invoke(m_col, GoalValue); | |
| } | |
| } | |
| // Start is called before the first frame update | |
| void Awake() | |
| { | |
| m_col = GetComponent<Collider>(); | |
| } | |
| // Update is called once per frame | |
| void Update() | |
| { | |
| } | |
| } | |