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