Table of Contents

Class RescaleActionVector<TObs, TAct>

Namespace
Gym.Wrappers.Vector
Assembly
Gym.dll

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

TObs

The batched observation type, passed through.

TAct

The env's batched action type.

Inheritance
VectorWrapper<TObs, NDArray, TObs, TAct>
RescaleActionVector<TObs, TAct>
Implements
Inherited Members
Extension Methods

Remarks

Constructors

RescaleActionVector(VectorEnv<TObs, TAct>, object, object)

Wraps env.

public RescaleActionVector(VectorEnv<TObs, TAct> env, object minAction, object maxAction)

Parameters

env VectorEnv<TObs, TAct>

The vector env, whose single action space is a Box.

minAction object

The new lower bound: a number or an array.

maxAction object

The 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_box refuses.