pub struct OfflineDataset {
pub transitions: Vec<Transition>,
}Expand description
Static offline transitions for flow-matching pretraining.
Fields§
§transitions: Vec<Transition>Implementations§
Source§impl OfflineDataset
impl OfflineDataset
pub fn from_transitions(transitions: Vec<Transition>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn from_replay(buf: &ReplayBuffer) -> Self
Sourcepub fn sample_diag_batch(
&self,
spec: &RlSpec,
indices: &[usize],
rng: &mut u64,
) -> ActorTrainBatch
pub fn sample_diag_batch( &self, spec: &RlSpec, indices: &[usize], rng: &mut u64, ) -> ActorTrainBatch
L_Diag batch (Eq. 3): r = t, target velocity a₁ - a₀.
Sourcepub fn sample_esd_inputs(
&self,
spec: &RlSpec,
indices: &[usize],
step: usize,
rng: &mut u64,
) -> EsdInputsBatch
pub fn sample_esd_inputs( &self, spec: &RlSpec, indices: &[usize], step: usize, rng: &mut u64, ) -> EsdInputsBatch
Pack ESD inputs: states, bridge a_r, curriculum (r,t), noise velocity v_rt.
Trait Implementations§
Source§impl Clone for OfflineDataset
impl Clone for OfflineDataset
Source§fn clone(&self) -> OfflineDataset
fn clone(&self) -> OfflineDataset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OfflineDataset
impl Debug for OfflineDataset
Source§impl Default for OfflineDataset
impl Default for OfflineDataset
Source§fn default() -> OfflineDataset
fn default() -> OfflineDataset
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OfflineDataset
impl RefUnwindSafe for OfflineDataset
impl Send for OfflineDataset
impl Sync for OfflineDataset
impl Unpin for OfflineDataset
impl UnsafeUnpin for OfflineDataset
impl UnwindSafe for OfflineDataset
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