jensandClaude Sonnet 4.6 d4d3d33931 [bugfix] - fix L1/L2 scaling: move regularisation out of grad_compute into state_adjust
Regularisation terms (L1, L2, weight_decay) were being divided by mini_batch_size
in state_adjust along with the CD gradient. The CD gradient is a batch sum so
1/N normalisation is correct; regularisation penalties are per-weight and
batch-size independent. Separating them makes l1_lambda/l2_lambda directly
interpretable regardless of batch size.

Also adds --l1_lambda CLI arg to test_faces_sub_image.py and sets num_epochs=1000.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 19:58:44 +02:00
2025-12-19 11:11:00 +01:00
2026-01-11 11:23:35 +01:00
2026-01-10 21:44:03 +01:00
2025-12-19 15:20:04 +01:00
2026-01-11 11:23:35 +01:00
2026-01-10 19:58:39 +01:00
2025-12-18 07:56:45 +01:00
2026-01-06 18:00:26 +01:00
2025-12-16 21:46:00 +01:00
S
Description
Restricted Boltzmann Machine (RBM) for python
Readme
59 MiB
Languages
Jupyter Notebook 96.9%
Python 3.1%