Class RescaleObservationVector<TObs, TAct>
Rescales each sub-env's Box observation affinely onto new bounds (Gymnasium's vector RescaleObservation).
[PyName("RescaleObservation")]
public class RescaleObservationVector<TObs, TAct> : VectorizeTransformObservation<NDArray, TObs, TAct>, IVectorEnv, IDisposable
Type Parameters
TObsThe env's batched observation type.
TActThe batched action type, passed through.
- Inheritance
-
VectorWrapper<NDArray, TAct, TObs, TAct>VectorObservationWrapper<NDArray, TObs, TAct>VectorizeTransformObservation<NDArray, TObs, TAct>RescaleObservationVector<TObs, TAct>
- Implements
- Inherited Members
- Extension Methods
Remarks
Constructors
RescaleObservationVector(VectorEnv<TObs, TAct>, object, object)
Wraps env.
public RescaleObservationVector(VectorEnv<TObs, TAct> env, object minObs, object maxObs)
Parameters
envVectorEnv<TObs, TAct>The vector env, whose single space is a
Box.minObsobjectThe new lower bound: a number or an array.
maxObsobjectThe new upper bound: a number or an array.
Exceptions
- TypeError
Thrown for a space that is not a
Box.- ValueError
Thrown for bounds
rescale_boxrefuses.