Files
ML-Porosity/configs/protocol_f3.yaml
holale 9976abc96b 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>
2026-10-28 07:01:08 +07:00

98 lines
5.8 KiB
YAML

# P3 F3: designed after P1 and P2r; no P3 held-out results used for these choices.
# Lock using scripts/19_run_f3.py lock before registration/training. Never overwrite a lock after results exist.
version: 1
date: '2026-10-27'
prior_observation: 'F3 is a descriptive follow-up after the already observed P1 results on these same four wells; functional outer-fold separation does not make this a new untouched field dataset.'
data:
wells: [F02-1, F03-2, F03-4, F06-1]
labels: [PHIE_DT, PHIE]
primary_label: PHIE_DT
window_ms: [600, 1100]
ext_window_ms: [400, 1300]
dataset: outputs/f3_wells.npz
references: [calibrated, wlt]
posterior_reference_samples: 64
note: 'PHIE_DT is sonic-derived porosity. TD markers are interpreted picks, not independent checkshots.'
missing_labels: 'Do not extrapolate missing porosity labels. Require each retained warp to cover measured support of both labels over the full main window; invalid anchor samples receive zero mass. Record retained particle counts and fail explicitly if too few survive. Constant AI extension outside the logged interval means zero reflectivity and is used only by the forward model.'
split:
outer: leave_one_well_out
inner: leave_one_well_out_on_the_three_outer_training_wells
seeds: [0, 1, 2, 3, 4]
selection: 'Per outer fold, label, method and seed: lowest mean original-scale total validation MSE over the three inner wells; ties choose the earliest budget.'
final: 'Ensemble the three inner models at the selected common budget; then ensemble the five seeds. No refit on the outer test well.'
cache: 'Reuse a trajectory for an identical training pair, method, label and seed. The other wells supply seismic only to prediction; their labels never enter that trajectory.'
registration:
kernel: matern32
sigma_a_ms: 7.0
sigma_b_ms: 50.0
hyperprior: {sigma_g: [0.05, 1.0], ell_ms: [150.0, 1.0]}
hyper_starts: 4
S: 64
particles: 1024
g_max: 1.0
wavelet_ms: 128
ess_min_frac: 0.25
shift_K: 8
tau_range_ms: [200, 1500]
fine_dt_ms: 0.5
warp_dtau_ms: 4.0
smc_seed: 0
phase_step: 15.0
phase_half_width: 3
phase_max_extra: 6
smc_moves: 8
sigma_a_sensitivity_ms: [3.5, 14.0]
sensitivity_methods: [B3c-R, B3d-Sa, M2-Sa]
sensitivity_labels: [PHIE_DT]
sigma_a_note: '7 ms is inherited from P2r, not estimated as truth on F3. Both misspecification arms must be reported, never used to choose the best test result.'
training:
d_channels: 64
p_dropout: 0.05
lr: 0.005
grad_clip: 5.0
budgets: [125, 250, 500, 1000, 2000]
window_samples: 64
window_step: 2
softdtw: {gamma: 0.1, band: 8}
dilate: {alpha: 0.5, gamma: 0.1, band: 8}
methods:
main: [B2, B3a, B3b, B3c, B3c-R, B3d, B3d-Sa, B4a, B4b, B4c, B4d, M1, M2-Sa]
classical: [B0a, B0b, B1]
ablations: [M2-anchor-only, M2-no-anchors, M2-bulk, M2-lambda1, M2-S1, M2-S8, M2-S256, M2-fixed-sigma, M2-legacy-loss, M2-TCN, B3d-Sa-TCN, M2-LFM]
ablation_labels: [PHIE_DT]
posterior_mean_definition: 'B3d-Sa averages the forward maps t(tau) over retained particles and then inverts that mean, matching P2r. This is not the mean of inverse maps or the mean of porosity labels.'
no_anchor_note: 'Remove anchor conditioning AND anchor-based hyperparameter fitting; use the predeclared hyperprior medians. The sonic datum remains defined as in every method. This is an information-removal diagnostic, not a fresh proof of absolute-time identifiability.'
lfm_note: 'Append the 6 Hz low-pass mean calibrated label of the training wells as a time-only LFM input, shared at every target; no target logs or markers. Descriptive ablation, not horizon-guided inversion.'
fixed_sigma: 1.0
metrics:
f_c_hz: 6.0
sensitivity_f_c_hz: [5.0, 8.0]
levels: [50, 80, 90, 95]
units: 'porosity units (fraction multiplied by 100)'
reporting: 'Per-well first, then unweighted mean over wells; seed and combined ensembles separate. No p-values on correlated time samples.'
gate:
candidate: M2-Sa
point_competitors: [B3b, B3c, B3c-R]
competitor_selection: 'Per outer fold, lowest inner-validation total MSE averaged over seeds; never select by outer-test metrics.'
direction: 'Lower band RMSE than the selected point competitor in at least 3 of the 4 outer wells, primary label, calibrated reference, 15-member combined ensemble.'
coverage: 'Macro coverage80 within [0.75, 0.85] AND macro coverage90 within [0.85, 0.95] for that same ensemble. Report every well too.'
pass: 'direction AND coverage; never relax thresholds or replace failed calibration by better accuracy.'
same_posterior: 'M2-Sa versus B3d-Sa is reported separately; a success here does not replace either G-C condition.'
diagnostics:
loao: 'All four wells: linearized GP predictive z-scores, including pick noise, with hyperparameters fitted only on the other three wells. Explicitly an anchor-only Gaussian approximation, not SMC calibration.'
evaluation_posterior: 'Anchor-only nonlinear GP samples of the scoring well, prior fitted only on the other three wells; scoring sensitivity only, never fed back into training or checkpoint selection.'
volume:
method: M2-Sa
label: PHIE_DT
training: 'Four inner models each trained on three wells, five seeds (20 members). Budget is the nearest registered budget to the median of outer selected budgets for this method and seed, ties earliest.'
extent: full
batch_size: 256
edge: 'One-trace border is NaN because a complete 3x3 patch is unavailable; never silently clamp patches.'
fallback: 'Only if explicitly requested by --sections: one inline and one crossline through each well; recorded as reduced scope.'
interpretation: 'Descriptive prediction maps of sonic-derived porosity. No independent ground truth or geological-validity claim.'
runtime:
device: cuda:0
workers: 4
cpu_threads_per_worker: 2
resume: 'A completed job is reused only if protocol, code, data, training wells, method, label and seed fingerprints match.'