pub struct SynapticState {
pub source_label: String,
pub target_label: String,
pub relation: String,
pub original_weight: f32,
pub current_weight: f32,
pub strengthen_count: u16,
pub weaken_count: u16,
pub ltp_applied: bool,
pub ltd_applied: bool,
}Expand description
Snapshot of per-edge learning state for persistence. Replaces: plasticity.py SynapticState dataclass
Fields§
§source_label: String§target_label: String§relation: String§original_weight: f32§current_weight: f32§strengthen_count: u16§weaken_count: u16§ltp_applied: bool§ltd_applied: boolTrait Implementations§
Source§impl Clone for SynapticState
impl Clone for SynapticState
Source§fn clone(&self) -> SynapticState
fn clone(&self) -> SynapticState
Returns a duplicate of the value. Read more
1.0.0 · 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 SynapticState
impl Debug for SynapticState
Source§impl<'de> Deserialize<'de> for SynapticState
impl<'de> Deserialize<'de> for SynapticState
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
Auto Trait Implementations§
impl Freeze for SynapticState
impl RefUnwindSafe for SynapticState
impl Send for SynapticState
impl Sync for SynapticState
impl Unpin for SynapticState
impl UnsafeUnpin for SynapticState
impl UnwindSafe for SynapticState
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