pub enum EdgeTier {
L1Working,
L2Episodic,
L3Semantic,
}Expand description
Memory tier for edge consolidation
Based on hippocampal-cortical memory consolidation research:
- L1 (Working): Dense, fast encoding, aggressive pruning (Dentate Gyrus-like)
- L2 (Episodic): Moderate density, Hebbian selection (CA1/CA3-like)
- L3 (Semantic): Sparse, near-permanent (Neocortex-like)
Variants§
L1Working
Working memory tier: new edges, dense, aggressive decay
L2Episodic
Episodic memory tier: proven edges, moderate decay
L3Semantic
Semantic memory tier: consolidated edges, near-permanent
Implementations§
Source§impl EdgeTier
impl EdgeTier
Sourcepub fn initial_weight(&self) -> f32
pub fn initial_weight(&self) -> f32
Get the initial weight for edges in this tier
Sourcepub fn prune_threshold(&self) -> f32
pub fn prune_threshold(&self) -> f32
Get the prune threshold for this tier
Sourcepub fn promotion_threshold(&self) -> Option<f32>
pub fn promotion_threshold(&self) -> Option<f32>
Get the promotion threshold to move to next tier
Sourcepub fn target_density(&self) -> f32
pub fn target_density(&self) -> f32
Get target density for this tier
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EdgeTier
impl<'de> Deserialize<'de> for EdgeTier
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for EdgeTier
impl Eq for EdgeTier
impl StructuralPartialEq for EdgeTier
Auto Trait Implementations§
impl Freeze for EdgeTier
impl RefUnwindSafe for EdgeTier
impl Send for EdgeTier
impl Sync for EdgeTier
impl Unpin for EdgeTier
impl UnsafeUnpin for EdgeTier
impl UnwindSafe for EdgeTier
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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