Class RescaleActionVector<TObs, TAct>
Rescales each sub-env's action from new bounds onto the env's Box (Gymnasium's vector RescaleAction).
[PyName("RescaleAction")]
public class RescaleActionVector<TObs, TAct> : VectorizeTransformAction<TObs, NDArray, TAct>, IVectorEnv, IDisposable
Type Parameters
TObsThe batched observation type, passed through.
TActThe env's batched action type.
- Inheritance
-
VectorWrapper<TObs, NDArray, TObs, TAct>VectorActionWrapper<TObs, NDArray, TAct>VectorizeTransformAction<TObs, NDArray, TAct>RescaleActionVector<TObs, TAct>
- Implements
- Inherited Members
- Extension Methods
Remarks
Reference: gymnasium/wrappers/vector/vectorize_action.py.
Constructors
RescaleActionVector(VectorEnv<TObs, TAct>, object, object)
Wraps env.
public RescaleActionVector(VectorEnv<TObs, TAct> env, object minAction, object maxAction)
Parameters
envVectorEnv<TObs, TAct>The vector env, whose single action space is a
Box.minActionobjectThe new lower bound: a number or an array.
maxActionobjectThe new upper bound: a number or an array.
Exceptions
- TypeError
Thrown for a space that is not a
Box.- InvalidBound
Thrown for equal bounds.
- ValueError
Thrown for bounds
rescale_boxrefuses.