Complete P3 F3 evaluation and Windows execution
Implement the frozen F3 protocol, nested LOWO, posterior label banks, ablations, diagnostics, checkpoint validation and full-volume inference. Record the negative G-C result: improvement at 1/4 wells, coverage80 52.38% and coverage90 60.91%, with unchanged thresholds and historical P2 results. Add native Windows logging, the RTX 3060 environment lock, detached runs, and an audited dashboard-lock recovery that preserves frozen scientific code. Update report.html, the plan and agent guidance with completed P3 status. Archive thesis sources under code_thesis with identical Git blobs and record the original-output audit without committing large data or model artifacts. Validation: 129 tests passed, 13 skipped; CUDA end-to-end smoke passed; completion audit verified 1,320 checkpoint/prediction pairs, 28 registration bundles and all 649 interior volume inlines. Scripts 04 and 09 were not rerun. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
@@ -35,7 +35,7 @@ from scipy.linalg import solve_triangular
|
||||
from ml_porosity.data.wavelet import rotate_phase
|
||||
from ml_porosity.registration.sampler import ess
|
||||
from ml_porosity.registration.tie_likelihood import fine_wavelet, forward_fine, profile_loglik
|
||||
from ml_porosity.registration.warp_prior import WarpGrid, WarpHyper, interp_matrix, laplace_posterior
|
||||
from ml_porosity.registration.warp_prior import WarpGrid, WarpHyper, interp_matrix, laplace_posterior, prior_moments
|
||||
|
||||
|
||||
def residual_kappa(syn: np.ndarray, seis: np.ndarray, max_lag: int = 16) -> float:
|
||||
@@ -61,12 +61,16 @@ class TiePosterior:
|
||||
|
||||
def __init__(self, grid: WarpGrid, h: WarpHyper, tau_k, t_k, g_max: float, tau_fine: np.ndarray,
|
||||
ai_log: np.ndarray, t_fine: np.ndarray, t_out: np.ndarray, w_fine: np.ndarray, seis: np.ndarray,
|
||||
t_cover: tuple[float, float] | None = None):
|
||||
t_cover: tuple[float, float] | None = None, allow_no_anchors: bool = False):
|
||||
tau_k = np.asarray(tau_k, dtype=float)
|
||||
if tau_k.size == 0:
|
||||
if tau_k.size == 0 and not allow_no_anchors:
|
||||
raise ValueError("anchors required")
|
||||
self.d_k = np.asarray(t_k, dtype=float) - tau_k
|
||||
self.mu, cov, self.A, self.off = laplace_posterior(grid, h, tau_k, self.d_k)
|
||||
if tau_k.size:
|
||||
self.mu, cov, self.A, self.off = laplace_posterior(grid, h, tau_k, self.d_k)
|
||||
else:
|
||||
self.mu, cov = prior_moments(grid, h)
|
||||
self.A, self.off = np.zeros((0, grid.n+1)), np.zeros(0)
|
||||
jit = 1e-9 * max(np.trace(cov) / len(self.mu), 1e-12) # as in sampler.elliptical_slice
|
||||
self.Lc = np.linalg.cholesky(cov + jit * np.eye(len(self.mu)))
|
||||
self.P = interp_matrix(tau_k, grid.tau) @ grid.Q
|
||||
|
||||
Reference in New Issue
Block a user