diff options
| author | YurenHao0426 <Blackhao0426@gmail.com> | 2026-07-21 07:09:24 -0500 |
|---|---|---|
| committer | YurenHao0426 <Blackhao0426@gmail.com> | 2026-07-21 07:09:24 -0500 |
| commit | 66e303416399e305a20d2ac1438fac33dd524944 (patch) | |
| tree | 95b71c82282491e41c534e340d463017e85463c4 /experiments/smoke.py | |
| parent | e0bfdfd51c78b945242bfa36a485d8773c4e17bb (diff) | |
fix: report the configured teaching-signal alignment
Diffstat (limited to 'experiments/smoke.py')
| -rw-r--r-- | experiments/smoke.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/experiments/smoke.py b/experiments/smoke.py index f440f7f..575f0bd 100644 --- a/experiments/smoke.py +++ b/experiments/smoke.py @@ -159,6 +159,10 @@ def main(): print(f" raw apical cos(a,-g) = {apical_cos:+.3f}") print(f" pure A c cos(Ac,-g) = {sum(al_n['cos_Ac_negg'])/len(al_n['cos_Ac_negg']):+.3f}") assert residual_cos > apical_cos + 0.1 + cfg_raw = SDILConfig(use_residual=False, learn_A=False, learn_P=True) + al_raw = probes.alignment_report(net_n, x, y, yoh, cfg_raw) + assert al_raw["cos_r_negg"] == al_raw["cos_apical_negg"], ( + "reported teaching alignment must honor use_residual=False") # ---- CHECK 5: single-step loss-decrease ratio vs exact GD ---- print("\nCHECK5 single-step loss-decrease ratio vs exact GD:") |
