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

@@ -1,18 +1,18 @@
# D1: F3 Demo 2023, 4 giếng. Đường dẫn dữ liệu lấy từ ml_porosity/paths.py
# (mặc định data/F3_Demo_2023/F3_Demo_2023, đổi bằng biến ML_POROSITY_F3_ROOT).
# D1: F3 Demo 2023, 4 wells. Data paths come from ml_porosity/paths.py
# (default data/F3_Demo_2023/F3_Demo_2023, override with the ML_POROSITY_F3_ROOT variable).
wells: [F02-1, F03-2, F03-4, F06-1]
time_window_ms: [600, 1100] # cửa sổ chính; D-2 chưa chốt
ext_window_ms: [400, 1300] # cửa sổ lưu trữ (biên cho inversion B1 và synthetic)
patch_radius: 1 # 3×3 trace như luận văn
time_window_ms: [600, 1100] # main window; D-2 not yet finalized
ext_window_ms: [400, 1300] # stored window (margin for B1 inversion and synthetics)
patch_radius: 1 # 3×3 traces as in the thesis
curves: [PHIE, PHIE_DT, DT, RHOB, GR, AI] # PHIE_DT = −0.2018 + 0.0011·DT (D-1)
# Các TDR được dựng cho mỗi giếng (xem ml_porosity/data/tdr.py):
# legacy tích phân DT từ mẫu LAS đầu, không hiệu chỉnh (cách của luận văn, chỉ để audit)
# calibrated marker-calibrated sonic: tham chiếu chấm điểm theo plan mục 5.2
# anchors nội suy tuyến tính giữa các cặp marker TD, không dùng DT của giếng
# wlt Depth2Time model của OpendTect (WellInfo/*.wlt), dùng cho phân tích độ nhạy
# TDRs built for each well (see ml_porosity/data/tdr.py):
# legacy DT integrated from the first LAS sample, uncalibrated (the thesis approach; audit only)
# calibrated marker-calibrated sonic: scoring reference per plan §5.2
# anchors linear interpolation between TD marker pairs, does not use the well's DT
# wlt OpendTect Depth2Time model (WellInfo/*.wlt), used for sensitivity analysis
tdrs: [legacy, calibrated, anchors, wlt]
resample:
fine_dt_ms: 0.25
cutoff_frac: 0.8 # lọc thông thấp ở 0.8·Nyquist của lưới 4 ms (100 Hz)
cutoff_frac: 0.8 # low-pass at 0.8·Nyquist of the 4 ms grid (100 Hz)