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
ppo-Pyramids-Training / com.unity.ml-agents /Runtime /Sensors /Reflection /Vector3ReflectionSensor.cs
Download com.unity.ml-agents/Runtime/Sensors/Reflection/Vector3ReflectionSensor.cs from AnnaMats/ppo-Pyramids-Training: direct link, hf CLI and curl.
- Browser
- Download file 610 Bytes
-
https://huggingface.co/AnnaMats/ppo-Pyramids-Training/resolve/main/com.unity.ml-agents/Runtime/Sensors/Reflection/Vector3ReflectionSensor.cs
- Command line
-
hf download hf://AnnaMats/ppo-Pyramids-Training/com.unity.ml-agents/Runtime/Sensors/Reflection/Vector3ReflectionSensor.cs
-
curl -L -o Vector3ReflectionSensor.cs https://huggingface.co/AnnaMats/ppo-Pyramids-Training/resolve/main/com.unity.ml-agents/Runtime/Sensors/Reflection/Vector3ReflectionSensor.cs
610 Bytes
| namespace Unity.MLAgents.Sensors.Reflection | |
| { | |
| /// <summary> | |
| /// Sensor that wraps a Vector3 field or property of an object, and returns | |
| /// that as an observation. | |
| /// </summary> | |
| internal class Vector3ReflectionSensor : ReflectionSensorBase | |
| { | |
| public Vector3ReflectionSensor(ReflectionSensorInfo reflectionSensorInfo) | |
| : base(reflectionSensorInfo, 3) | |
| { } | |
| internal override void WriteReflectedField(ObservationWriter writer) | |
| { | |
| var vecVal = (UnityEngine.Vector3)GetReflectedValue(); | |
| writer.Add(vecVal); | |
| } | |
| } | |
| } | |