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:
2026-10-28 07:01:08 +07:00
parent a22f9d951f
commit 9976abc96b
50 changed files with 2738 additions and 219 deletions

25
scripts/21_predict_f3.py Normal file
View File

@@ -0,0 +1,25 @@
"""Fit deployment models or stream the descriptive full F3 volume after P3 LOWO."""
from __future__ import annotations
import argparse
def main():
from ml_porosity.f3.protocol import load_protocol
from ml_porosity.f3.volume import fit_deployment, predict_volume
ap = argparse.ArgumentParser(description=__doc__)
ap.add_argument('stage', choices=['fit', 'predict'])
ap.add_argument('--device', default='cuda:0')
ap.add_argument('--workers', type=int, default=3)
ap.add_argument('--sections', action='store_true')
ap.add_argument('--limit-inlines', type=int)
args = ap.parse_args()
p = load_protocol()
if args.stage == 'fit':
print(fit_deployment(p, args.device, args.workers))
else:
print(predict_volume(p, args.device, args.sections, args.limit_inlines))
if __name__ == '__main__':
main()