PruningController - Overdrive77/BioSynapStudio-Public GitHub Wiki


PruningController Class

Summary

Controls synaptic pruning based on STDP (Spike-Timing Dependent Plasticity) trace magnitude and overall emotional or hormonal conditions.


Namespace

BioSynapStudio.Net.Modules.Plasiticity

Assembly

BioSynapStudio.Net.dll


Declaration

public class PruningController

Constructors

PruningController(double pruneThreshold = 0.01)

Initializes the pruning controller with a threshold value below which synapses will be pruned.

  • pruneThreshold: Minimum trace magnitude required to retain a synapse.

Methods

void EvaluateAndPrune(IEnumerable<Neuron> neurons)

Scans each neuron's axon terminal and removes synapses with a TraceMagnitude below the configured threshold.

  • neurons: A collection of neurons whose synapses will be evaluated.

Usage Example

var pruningController = new PruningController(0.02);
pruningController.EvaluateAndPrune(neuralNetwork.Neurons);

Remarks

  • Works in conjunction with TraceStdpPlasticity by leveraging its pre- and post-trace values to determine whether a synapse has remained active enough to justify retention.
  • Designed to be invoked periodically, often under emotional or hormonal conditions such as fatigue, low dopamine, or calm states (e.g., EmotionType.Peace).
  • Part of a biologically accurate structural plasticity pipeline that complements neurogenesis.

See Also


Legal Notice

This software constitutes original intellectual property of the author, protected under international copyright and patent law. Patent: GB2506327.2 – Synthesized Emotional Cognition (SEC) DOI: 10.17605/OSF.IO/XERKF


⚠️ **GitHub.com Fallback** ⚠️