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:
@@ -1,9 +1,9 @@
|
||||
"""Biến đổi bin (inline/crossline) ↔ XY theo file `.survey` của OpendTect.
|
||||
"""Bin (inline/crossline) ↔ XY transformation from the OpendTect `.survey` file.
|
||||
|
||||
`.survey` lưu phép biến đổi affine
|
||||
`.survey` stores the affine transformation
|
||||
X = x0 + a_x·IL + b_x·XL
|
||||
Y = y0 + a_y·IL + b_y·XL
|
||||
trong các dòng `Coord-X-BinID: x0`a_x`b_x` và `Coord-Y-BinID: y0`a_y`b_y`.
|
||||
in the lines `Coord-X-BinID: x0`a_x`b_x` and `Coord-Y-BinID: y0`a_y`b_y`.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -62,7 +62,7 @@ class SurveyGeometry:
|
||||
|
||||
@classmethod
|
||||
def from_points(cls, il, xl, x, y, z_range=(np.nan, np.nan, np.nan), epsg: int | None = None) -> SurveyGeometry:
|
||||
"""Khớp affine bình phương tối thiểu từ các điểm (IL, XL, X, Y), ví dụ các nút của một horizon."""
|
||||
"""Least-squares affine fit from (IL, XL, X, Y) points, e.g. the nodes of a horizon."""
|
||||
il, xl, x, y = (np.asarray(v, dtype=float).ravel() for v in (il, xl, x, y))
|
||||
A = np.c_[np.ones_like(il), il, xl]
|
||||
cx, *_ = np.linalg.lstsq(A, x, rcond=None)
|
||||
@@ -87,7 +87,7 @@ class SurveyGeometry:
|
||||
return x, y
|
||||
|
||||
def xy_to_bin(self, x, y):
|
||||
"""Bin (thực, chưa làm tròn) tương ứng với XY."""
|
||||
"""Real-valued (unrounded) bin corresponding to XY."""
|
||||
x = np.asarray(x, dtype=float)
|
||||
y = np.asarray(y, dtype=float)
|
||||
rhs = np.stack([x - self.x_coef[0], y - self.y_coef[0]])
|
||||
@@ -99,7 +99,7 @@ class SurveyGeometry:
|
||||
return int(np.rint(il)), int(np.rint(xl))
|
||||
|
||||
def bin_spacing(self) -> tuple[float, float]:
|
||||
"""Khoảng cách (m) giữa hai inline liên tiếp và hai crossline liên tiếp."""
|
||||
"""Spacing (m) between consecutive inlines and between consecutive crosslines."""
|
||||
m = self._matrix()
|
||||
return float(np.hypot(*m[:, 0])), float(np.hypot(*m[:, 1]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user