P2 diagnosis on dev, P3 dev experiments, lock protocol_p3
- P2: SMC tie posterior (numpy + torch), RML/soft-DTW losses, bank training, D2 synthetic generator, scripts 09-13, protocol_p2 (locked) and its outcome (G-B failed; H1 not rejected, H3 rejected, H4 not rejected). - Diagnosis on dev realizations 900/901 only (scripts 14-17, run_p3_dev.sh): posterior screen, SMC stability (P = 1024, K = 1), sigma_a misspecification stress and training, H3 with the SMC posterior, F3 placement on sigma_post. - protocol_p3: H2 split into H2a (posterior-mean labels vs point ties) and H2b (RML vs posterior mean as a function of sigma_post); H3 descriptive only; sigma_a arm; new D2 config d2_synth_p3.yaml; main grid on realizations 8-15. Locked by configs/protocol_p3.sha256 and tag protocol-p3. - runlog: per-run logs and runtime index (logs/index.csv). - Docs: plan §12 items 10-11, theory, technical overview, report; wording aligned with Gunning & Glinsky (2006): the tie posterior is not claimed as new. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@ def test_strat_map_identity_and_shift():
|
||||
h = np.array([600.0, 800.0, 1000.0])
|
||||
np.testing.assert_allclose(strat_map(t, h, h), t)
|
||||
np.testing.assert_allclose(strat_map(t, h, h + 20), t + 20)
|
||||
# giãn tuyến tính giữa hai horizon
|
||||
# linear stretch between two horizons
|
||||
out = strat_map(np.array([700.0]), np.array([600.0, 800.0]), np.array([600.0, 1000.0]))
|
||||
assert out[0] == pytest.approx(800.0)
|
||||
|
||||
@@ -58,4 +58,4 @@ def test_gaussian_metrics_calibrated():
|
||||
y = rng.standard_normal(20000)
|
||||
g = gaussian_metrics(y, np.zeros_like(y), np.ones_like(y))
|
||||
assert g["coverage_90"] == pytest.approx(0.90, abs=0.01)
|
||||
assert g["crps"] == pytest.approx(1 / np.sqrt(np.pi), abs=0.01) # E[CRPS] khi dự báo đúng N(0, 1)
|
||||
assert g["crps"] == pytest.approx(1 / np.sqrt(np.pi), abs=0.01) # E[CRPS] for a correct N(0, 1) forecast
|
||||
|
||||
Reference in New Issue
Block a user