added gap validation.
This commit is contained in:
parent
374be6865d
commit
740249115b
12 changed files with 997 additions and 116 deletions
|
|
@ -148,7 +148,7 @@ def evaluate_gap_vs_withheld(
|
|||
fused_nogap_path: Path | None,
|
||||
mode: str,
|
||||
*,
|
||||
whittaker_context: tuple[Path, str, str, str] | None = None,
|
||||
whittaker_context: tuple[Path, str, str, str, str, str] | None = None,
|
||||
) -> dict:
|
||||
"""Spatial metrics for gap and no-gap; deltas; optional Whittaker constant-field vs same mask.
|
||||
|
||||
|
|
@ -170,9 +170,14 @@ def evaluate_gap_vs_withheld(
|
|||
if whittaker_context is not None:
|
||||
from gap_validation.whittaker_compare import whittaker_gcc_on_gap_masked_series
|
||||
|
||||
base, strategy, prediction_iso, withheld_iso = whittaker_context
|
||||
base, strategy, prediction_iso, withheld_iso, w0, w1 = whittaker_context
|
||||
wgcc = whittaker_gcc_on_gap_masked_series(
|
||||
base, strategy, prediction_iso, withheld_iso
|
||||
base,
|
||||
strategy,
|
||||
prediction_iso,
|
||||
withheld_iso,
|
||||
window_start_iso=w0,
|
||||
window_end_iso=w1,
|
||||
)
|
||||
if wgcc is not None:
|
||||
out["whittaker"] = constant_field_scores(yt, float(wgcc), mask)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue