pub struct NStepTransition {
pub obs: Vec<f32>,
pub action: Vec<f32>,
pub n_step_return: f32,
pub bootstrap_obs: Vec<f32>,
pub done: bool,
pub actual_n: usize,
pub gamma_n: f32,
}Expand description
A transition with n-step return pre-computed.
Fields§
§obs: Vec<f32>Observation at the start of the n-step window.
action: Vec<f32>Action taken at the start of the window.
n_step_return: f32Discounted n-step return R_t^(n).
bootstrap_obs: Vec<f32>Observation at t + n (or at episode end).
done: boolWhether the episode ended within the n-step window.
actual_n: usizeActual number of steps accumulated (≤ n, < n at episode end).
gamma_n: f32γ^actual_n for bootstrapping.
Trait Implementations§
Source§impl Clone for NStepTransition
impl Clone for NStepTransition
Source§fn clone(&self) -> NStepTransition
fn clone(&self) -> NStepTransition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NStepTransition
impl RefUnwindSafe for NStepTransition
impl Send for NStepTransition
impl Sync for NStepTransition
impl Unpin for NStepTransition
impl UnsafeUnpin for NStepTransition
impl UnwindSafe for NStepTransition
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