pub struct ReplayBuffer<T> { /* private fields */ }Expand description
Experience replay buffer using reservoir sampling.
This ensures uniform coverage of past experiences for stable learning, preventing catastrophic forgetting as described in the ruvector-gnn crate.
Implementations§
Source§impl<T: Clone> ReplayBuffer<T>
impl<T: Clone> ReplayBuffer<T>
Sourcepub fn total_seen(&self) -> u64
pub fn total_seen(&self) -> u64
Get total experiences seen.
Auto Trait Implementations§
impl<T> Freeze for ReplayBuffer<T>
impl<T> RefUnwindSafe for ReplayBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for ReplayBuffer<T>where
T: Send,
impl<T> Sync for ReplayBuffer<T>where
T: Sync,
impl<T> Unpin for ReplayBuffer<T>where
T: Unpin,
impl<T> UnsafeUnpin for ReplayBuffer<T>
impl<T> UnwindSafe for ReplayBuffer<T>where
T: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request