Struct CompressionSpec
A description of the compression used for observations.
Inherited Members
Namespace: Unity.MLAgents.Sensors
Assembly: solution.dll
Syntax
public struct CompressionSpec
Remarks
Most ISensor implementations can't take advantage of compression, and should return CompressionSpec.Default() from their ISensor.GetCompressionSpec() methods. Visual observations, or mulitdimensional categorical observations (for example, image segmentation or the piece types in a match-3 game board) can use PNG compression reduce the amount of data transferred between Unity and the trainer.
Constructors
| Name | Description |
|---|---|
| CompressionSpec(SensorCompressionType, int[]) | Return a CompressionSpec indicating possible compression. |
Properties
| Name | Description |
|---|---|
| CompressedChannelMapping | The mapping of the channels in compressed data to the actual channel after decompression. |
| SensorCompressionType | The compression type that the sensor will use for its observations. |
Methods
| Name | Description |
|---|---|
| Default() | Return a CompressionSpec indicating no compression. This is recommended for most sensors. |