Table of Contents

Class RescaleObservationVector<TObs, TAct>

Namespace
Gym.Wrappers.Vector
Assembly
Gym.dll

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

TObs

The env's batched observation type.

TAct

The batched action type, passed through.

Inheritance
VectorWrapper<NDArray, TAct, 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

env VectorEnv<TObs, TAct>

The vector env, whose single space is a Box.

minObs object

The new lower bound: a number or an array.

maxObs object

The new upper bound: a number or an array.

Exceptions

TypeError

Thrown for a space that is not a Box.

ValueError

Thrown for bounds rescale_box refuses.