pub struct Learner {
pub decay_idle_threshold: u32,
pub decay_factor: f64,
}Expand description
Owns post-trajectory learning: case/strategy/CAS update + idle strategy decay.
Fields§
§decay_idle_threshold: u32Decay idle threshold for this value.
decay_factor: f64Decay factor for this value.
Implementations§
Source§impl Learner
impl Learner
Sourcepub fn update(&self, memory: &mut MemoryFacade, traj: &Trajectory) -> Result<()>
pub fn update(&self, memory: &mut MemoryFacade, traj: &Trajectory) -> Result<()>
Performs update for this type.
Sourcepub fn decay_only(&self, memory: &mut MemoryFacade)
pub fn decay_only(&self, memory: &mut MemoryFacade)
Decay-only pass (when L0 already called memory.update).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Learner
impl Freeze for Learner
impl Move for Learner
impl RefUnwindSafe for Learner
impl Send for Learner
impl Sync for Learner
impl Unpin for Learner
impl UnsafeUnpin for Learner
impl UnwindSafe for Learner
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