geoprior.scripts.update_ablation_records#

Update ablation_record using post-hoc calibrated metrics.

Why this script#

Older ablation JSONL rows may store point/interval metrics in SI units (e.g., meters) or store uncalibrated interval metrics.

This script patches each JSONL row by reading the authoritative run artifacts:

  • geoprior_eval_phys_<TS>_interpretable.json (preferred)

  • geoprior_eval_phys_<TS>.json (fallback)

  • *eval_diagnostics*_calibrated.json (fallback)

Outputs#

For each input ablation JSONL:

  • writes a sibling file ablation_record.updated.jsonl next to the original and does not overwrite by default

  • optionally exports a combined table as CSV and JSON under scripts/out

Functions

main([argv, prog])

update_ablation_records_main([argv, prog])

Classes

PatchInfo(ok[, reason, ts, run_dir, ...])

class geoprior.scripts.update_ablation_records.PatchInfo(ok: 'bool', reason: 'str' = '', ts: 'str' = '', run_dir: 'str' = '', phys_json: 'str' = '', eval_diag: 'str' = '')[source]#

Bases: object

Parameters:
ok: bool#
reason: str = ''#
ts: str = ''#
run_dir: str = ''#
phys_json: str = ''#
eval_diag: str = ''#
__init__(ok, reason='', ts='', run_dir='', phys_json='', eval_diag='')#
Parameters:
Return type:

None

geoprior.scripts.update_ablation_records.update_ablation_records_main(argv=None, *, prog=None)[source]#
Parameters:
Return type:

None

geoprior.scripts.update_ablation_records.main(argv=None, *, prog=None)[source]#
Parameters:
Return type:

None