Expand description
Mastery Learning - Pure integer adaptive learning for Signal weights
Based on the paradigm shift: learning is refinement of existing structure, not construction from nothing.
§Core Principles
- Structure before learning - Initialize with ±1 polarity, magnitude 20-40
- Peak-relative gating - Only neurons above
max / divisorparticipate (not percentile) - Sustained pressure - Pressure must accumulate past threshold before change
- Weaken before flip - Deplete magnitude to 0 before polarity changes
- Integer throughout - No floats in the learning loop
§Performance
- 90% accuracy on onset detection
- 25 iterations to converge (not 850+)
- 23ms training time (not 3000ms)
- 412 polarity flips (not 10,000+)
This is real-time cognition, not batch training.
Structs§
- Mastery
Config - Mastery learning configuration - all integers
- Mastery
State - Mastery learning state for a weight matrix
Functions§
- compute_
participation_ mask - Compute participation mask using peak-relative gating (above max/divisor)
- count_
active - Count active weights (non-zero polarity)
- init_
positive_ bias - Initialize bias with positive polarity (helps ReLU survival)
- init_
random_ structure - Initialize weights with random structure (not zeros!)
- mastery_
update - Mastery learning update - pure integer
- sparsity
- Compute sparsity (fraction of zero weights)