Table of Contents

Struct VectorListStepResult<TObs>

Namespace
Gym.Wrappers.Vector
Assembly
Gym.dll

A vector step whose infos are one dict per sub-env (DictInfoToList<TObs, TAct>'s result).

public readonly record struct VectorListStepResult<TObs> : INDArrayCarrier, IEquatable<VectorListStepResult<TObs>>

Type Parameters

TObs

The batched observation type.

Implements
Inherited Members
Extension Methods

Constructors

VectorListStepResult(TObs, NDArray, NDArray, NDArray, IReadOnlyList<Info>)

A vector step whose infos are one dict per sub-env (DictInfoToList<TObs, TAct>'s result).

public VectorListStepResult(TObs Observations, NDArray Rewards, NDArray Terminations, NDArray Truncations, IReadOnlyList<Info> Infos)

Parameters

Observations TObs

The batched observations.

Rewards NDArray

The rewards, float64.

Terminations NDArray

Which sub-envs terminated.

Truncations NDArray

Which sub-envs were truncated.

Infos IReadOnlyList<Info>

The i-th sub-env's info at index i.

Properties

Infos

The i-th sub-env's info at index i.

public IReadOnlyList<Info> Infos { get; init; }

Property Value

IReadOnlyList<Info>

Observations

The batched observations.

public TObs Observations { get; init; }

Property Value

TObs

Rewards

The rewards, float64.

public NDArray Rewards { get; init; }

Property Value

NDArray

Terminations

Which sub-envs terminated.

public NDArray Terminations { get; init; }

Property Value

NDArray

Truncations

Which sub-envs were truncated.

public NDArray Truncations { get; init; }

Property Value

NDArray