Skip to main content

Module learning

Module learning 

Source
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

  1. Structure before learning - Initialize with ±1 polarity, magnitude 20-40
  2. Peak-relative gating - Only neurons above max / divisor participate (not percentile)
  3. Sustained pressure - Pressure must accumulate past threshold before change
  4. Weaken before flip - Deplete magnitude to 0 before polarity changes
  5. 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§

MasteryConfig
Mastery learning configuration - all integers
MasteryState
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)