pub struct Neuroplasticity {
pub synapses: HashMap<(u32, u32), SynapticConnection>,
pub pathways: HashMap<u64, NeuralPathway>,
pub reorganization_threshold: f32,
pub plasticity_window_ms: u64,
}Fields§
§synapses: HashMap<(u32, u32), SynapticConnection>§pathways: HashMap<u64, NeuralPathway>§reorganization_threshold: f32§plasticity_window_ms: u64Implementations§
Source§impl Neuroplasticity
impl Neuroplasticity
pub fn new() -> Self
Sourcepub fn strengthen_synapse(&mut self, from: u32, to: u32, success: bool)
pub fn strengthen_synapse(&mut self, from: u32, to: u32, success: bool)
Strengthen or create synaptic connection (Hebbian learning)
Sourcepub fn strengthen_pathway(&mut self, nodes: Vec<u32>, domain: &str) -> u64
pub fn strengthen_pathway(&mut self, nodes: Vec<u32>, domain: &str) -> u64
Create or strengthen neural pathway
Sourcepub fn prune_weak_synapses(&mut self, strength_threshold: f32) -> usize
pub fn prune_weak_synapses(&mut self, strength_threshold: f32) -> usize
Prune weak connections (use it or lose it)
Sourcepub fn reorganize_pathways(&mut self) -> usize
pub fn reorganize_pathways(&mut self) -> usize
Reorganize pathways (merge/split based on usage)
Sourcepub fn calculate_plasticity(&self) -> f32
pub fn calculate_plasticity(&self) -> f32
Calculate network plasticity (capacity to change)
Sourcepub fn find_alternative_pathways(
&self,
source: u32,
target: u32,
) -> Vec<Vec<u32>>
pub fn find_alternative_pathways( &self, source: u32, target: u32, ) -> Vec<Vec<u32>>
Find alternative pathways (network rewiring)
Sourcepub fn strongest_pathways(&self, k: usize) -> Vec<&NeuralPathway>
pub fn strongest_pathways(&self, k: usize) -> Vec<&NeuralPathway>
Get strongest pathways
pub fn save(&self, dir: &Path) -> Result<(), String>
pub fn load(dir: &Path) -> Result<Self, String>
pub fn load_or_init(dir: &Path) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Neuroplasticity
impl RefUnwindSafe for Neuroplasticity
impl Send for Neuroplasticity
impl Sync for Neuroplasticity
impl Unpin for Neuroplasticity
impl UnsafeUnpin for Neuroplasticity
impl UnwindSafe for Neuroplasticity
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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