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