pub type StepOf<B, E> = Step<B, <E as Environment>::State<B>, <E as Environment>::Obs<B>>;Expand description
The Step of an environment.
Aliased Type§
pub struct StepOf<B, E> {
pub obs: <E as Environment>::Obs<B>,
pub state: <E as Environment>::State<B>,
pub reward: Scalar<B, f32>,
pub terminated: Scalar<B, bool>,
pub truncated: Scalar<B, bool>,
pub final_observation: <E as Environment>::Obs<B>,
pub discount: Scalar<B, f32>,
}Fields§
§obs: <E as Environment>::Obs<B>The next observation: after a reset if the episode ended.
state: <E as Environment>::State<B>The next state: a fresh one if the episode ended.
reward: Scalar<B, f32>The reward of the step.
terminated: Scalar<B, bool>Whether the episode ended in a terminal state.
truncated: Scalar<B, bool>Whether the episode reached its time limit.
final_observation: <E as Environment>::Obs<B>The observation reached by the step, before any reset.
discount: Scalar<B, f32>0 if the step reached a terminal state, 1 otherwise.