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="./downloads"
- Notebooks
- Google Colab
- Kaggle
Download com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent3D.cs from AnnaMats/ppo-Pyramids-Training: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/AnnaMats/ppo-Pyramids-Training/resolve/main/com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent3D.cs
- Command line
-
hf download hf://AnnaMats/ppo-Pyramids-Training/com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent3D.cs
-
curl -L -o RayPerceptionSensorComponent3D.cs https://huggingface.co/AnnaMats/ppo-Pyramids-Training/resolve/main/com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent3D.cs
1.76 kB
| using UnityEngine; | |
| using UnityEngine.Serialization; | |
| namespace Unity.MLAgents.Sensors | |
| { | |
| /// <summary> | |
| /// A component for 3D Ray Perception. | |
| /// </summary> | |
| [] | |
| public class RayPerceptionSensorComponent3D : RayPerceptionSensorComponentBase | |
| { | |
| [] | |
| [] | |
| [] | |
| float m_StartVerticalOffset; | |
| /// <summary> | |
| /// Ray start is offset up or down by this amount. | |
| /// </summary> | |
| public float StartVerticalOffset | |
| { | |
| get => m_StartVerticalOffset; | |
| set { m_StartVerticalOffset = value; UpdateSensor(); } | |
| } | |
| [] | |
| [] | |
| [] | |
| float m_EndVerticalOffset; | |
| /// <summary> | |
| /// Ray end is offset up or down by this amount. | |
| /// </summary> | |
| public float EndVerticalOffset | |
| { | |
| get => m_EndVerticalOffset; | |
| set { m_EndVerticalOffset = value; UpdateSensor(); } | |
| } | |
| /// <inheritdoc/> | |
| public override RayPerceptionCastType GetCastType() | |
| { | |
| return RayPerceptionCastType.Cast3D; | |
| } | |
| /// <inheritdoc/> | |
| public override float GetStartVerticalOffset() | |
| { | |
| return StartVerticalOffset; | |
| } | |
| /// <inheritdoc/> | |
| public override float GetEndVerticalOffset() | |
| { | |
| return EndVerticalOffset; | |
| } | |
| } | |
| } | |