Constructor ObservationSpec
ObservationSpec(InplaceArray<int>, InplaceArray<DimensionProperty>, ObservationType)
Create a general ObservationSpec from the shape, dimension properties, and observation type.
Declaration
public ObservationSpec(InplaceArray<int> shape, InplaceArray<DimensionProperty> dimensionProperties, ObservationType observationType = ObservationType.Default)
Parameters
| Type | Name | Description |
|---|---|---|
| InplaceArray<int> | shape | |
| InplaceArray<DimensionProperty> | dimensionProperties | |
| ObservationType | observationType |
Remarks
Note that not all combinations of DimensionProperty may be supported by the trainer. shape and dimensionProperties must have the same size.
Exceptions
| Type | Condition |
|---|---|
| UnityAgentsException |