pub struct PrioritizedSampledBatch {
pub observations: Vec<f32>,
pub next_observations: Vec<f32>,
pub actions: Vec<f32>,
pub rewards: Vec<f32>,
pub terminated: Vec<bool>,
pub truncated: Vec<bool>,
pub obs_dim: usize,
pub act_dim: usize,
pub batch_size: usize,
pub weights: Vec<f64>,
pub indices: Vec<usize>,
}Expand description
A sampled batch with importance-sampling weights.
Fields§
§observations: Vec<f32>§next_observations: Vec<f32>§actions: Vec<f32>§rewards: Vec<f32>§terminated: Vec<bool>§truncated: Vec<bool>§obs_dim: usize§act_dim: usize§batch_size: usize§weights: Vec<f64>§indices: Vec<usize>Trait Implementations§
Source§impl Clone for PrioritizedSampledBatch
impl Clone for PrioritizedSampledBatch
Source§fn clone(&self) -> PrioritizedSampledBatch
fn clone(&self) -> PrioritizedSampledBatch
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 PrioritizedSampledBatch
impl RefUnwindSafe for PrioritizedSampledBatch
impl Send for PrioritizedSampledBatch
impl Sync for PrioritizedSampledBatch
impl Unpin for PrioritizedSampledBatch
impl UnwindSafe for PrioritizedSampledBatch
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
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