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:
2026-10-27 06:03:33 +00:00
parent a76e61398a
commit cee2ff0859
84 changed files with 8793 additions and 460 deletions

View File

@@ -5,7 +5,7 @@ from ml_porosity.data.geometry import SurveyGeometry
from ml_porosity.paths import f3_root
SURVEY = f3_root() / ".survey"
pytestmark = pytest.mark.skipif(not SURVEY.exists(), reason="thiếu F3 .survey")
pytestmark = pytest.mark.skipif(not SURVEY.exists(), reason="missing F3 .survey")
@pytest.fixture(scope="module")
@@ -45,7 +45,7 @@ def test_round_trip_vectorised(geom):
@pytest.mark.parametrize(
"name,xy,expected",
[ # bảng IL/XL thật ở plan mục 1.2a
[ # true IL/XL table in plan §1.2a
("F02-1", (606554, 6080126), (362, 336)),
("F03-2", (619101, 6089491), (722, 848)),
("F03-4", (623256, 6082586), (442, 1007)),
@@ -59,7 +59,7 @@ def test_well_bins_match_plan(geom, name, xy, expected):
@pytest.mark.parametrize(
"legacy,xy,km",
[ # vị trí luận văn dùng và độ lệch ở plan mục 1.2a
[ # locations used in the thesis and their offsets, plan §1.2a
((418, 608), (606554, 6080126), 6.94),
((362, 821), (623256, 6082586), 5.05),
((283, 842), (607903, 6077213), 11.42),