pub struct TimeStep<S, A, C> {
pub env_id: usize,
pub transition: Transition<S, A>,
pub done: bool,
pub ep_len: usize,
pub cum_reward: f64,
pub action_context: C,
}Available on crate feature
rl only.Expand description
A timestep debscribing an iteration of the state/decision process.
Fields§
§env_id: usizeThe environment id.
transition: Transition<S, A>The burn_rl::Transition.
done: boolTrue if the environment reaches a terminal state.
ep_len: usizeThe running length of the current episode.
cum_reward: f64The running cumulative reward.
action_context: CThe action’s context for this timestep.
Trait Implementations§
Auto Trait Implementations§
impl<S, A, C> Freeze for TimeStep<S, A, C>
impl<S, A, C> RefUnwindSafe for TimeStep<S, A, C>
impl<S, A, C> Send for TimeStep<S, A, C>
impl<S, A, C> Sync for TimeStep<S, A, C>
impl<S, A, C> Unpin for TimeStep<S, A, C>
impl<S, A, C> UnsafeUnpin for TimeStep<S, A, C>
impl<S, A, C> UnwindSafe for TimeStep<S, A, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more