Class SensorHelper
Utility methods related to ISensor implementations.
Inherited Members
Namespace: Unity.MLAgents.Sensors
Assembly: solution.dll
Syntax
public static class SensorHelper
Methods
| Name | Description |
|---|---|
| CompareObservation(ISensor, float[,,], out string) | Generates the observations for the provided sensor, and returns true if they equal the expected values. If they are unequal, errorMessage is also set. This should not generally be used in production code. It is only intended for simplifying unit tests. |
| CompareObservation(ISensor, float[], out string) | Generates the observations for the provided sensor, and returns true if they equal the expected values. If they are unequal, errorMessage is also set. This should not generally be used in production code. It is only intended for simplifying unit tests. |