From 66e303416399e305a20d2ac1438fac33dd524944 Mon Sep 17 00:00:00 2001 From: YurenHao0426 Date: Tue, 21 Jul 2026 07:09:24 -0500 Subject: fix: report the configured teaching-signal alignment --- experiments/smoke.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'experiments/smoke.py') 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:") -- cgit v1.2.3