pub struct LazyHistoryFeatures<'a, OS: Space + ?Sized, AS: Space + ?Sized, E> { /* private fields */ }
Expand description
Packed history features with lazy evaluation and caching.
Implementations§
Source§impl<'a, OS, AS, E> LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS, AS, E> LazyHistoryFeatures<'a, OS, AS, E>
Trait Implementations§
Source§impl<'a, OS: Debug + Space + ?Sized, AS: Debug + Space + ?Sized, E: Debug> Debug for LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS: Debug + Space + ?Sized, AS: Debug + Space + ?Sized, E: Debug> Debug for LazyHistoryFeatures<'a, OS, AS, E>
Source§impl<'a, OS, AS, E> HistoryFeatures for LazyHistoryFeatures<'a, OS, AS, E>where
OS: FeatureSpace + ?Sized,
AS: ReprSpace<Tensor> + ?Sized,
E: Sequence<Item = &'a PartialStep<OS::Element, AS::Element>> + IntoIterator<Item = &'a PartialStep<OS::Element, AS::Element>> + Copy,
E::IntoIter: DoubleEndedIterator,
impl<'a, OS, AS, E> HistoryFeatures for LazyHistoryFeatures<'a, OS, AS, E>where
OS: FeatureSpace + ?Sized,
AS: ReprSpace<Tensor> + ?Sized,
E: Sequence<Item = &'a PartialStep<OS::Element, AS::Element>> + IntoIterator<Item = &'a PartialStep<OS::Element, AS::Element>> + Copy,
E::IntoIter: DoubleEndedIterator,
Source§fn observation_features(&self) -> &PackedTensor
fn observation_features(&self) -> &PackedTensor
Packed observation features. A 2D
f32
tensor.Source§fn extended_observation_features(&self) -> (&PackedTensor, &PackedTensor)
fn extended_observation_features(&self) -> (&PackedTensor, &PackedTensor)
Packed extended observation features. Includes interrupted successor observations. Read more
Source§fn actions(&self) -> &PackedTensor
fn actions(&self) -> &PackedTensor
Packed action values. Read more
Source§fn rewards(&self) -> &PackedTensor
fn rewards(&self) -> &PackedTensor
Packed rewards. A 1D f32 tensor.
Auto Trait Implementations§
impl<'a, OS, AS, E> !Freeze for LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS, AS, E> RefUnwindSafe for LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS, AS, E> !Send for LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS, AS, E> !Sync for LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS, AS, E> Unpin for LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS, AS, E> UnwindSafe for LazyHistoryFeatures<'a, OS, AS, E>
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> 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