pub struct Step<E: Env> {
    pub act: E::Act,
    pub obs: E::Obs,
    pub reward: Vec<f32>,
    pub is_done: Vec<i8>,
    pub info: E::Info,
    pub init_obs: E::Obs,
}
Expand description

All information given at every step of agent-envieronment interaction.

Old versions of the library support veectorized environments, which requires elements in Step to be able to handle multiple values. This is why reward and is_done are vector.

Fields

act: E::Act

Action.

obs: E::Obs

Observation.

reward: Vec<f32>

Reward.

is_done: Vec<i8>

Flag denoting if episode is done.

info: E::Info

Information defined by user.

init_obs: E::Obs

Initial observation. If is_done[i] == 0, the corresponding element will not be used.

Implementations

Constructs a Step object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.