Skip to contents

Runs n_reps replicate Dynamic Fire simulations at the calibrated parameter vector and returns their per-replicate fire statistics plus the loss against the observed targets, so a calibration report can plot the goodness-of-fit that calibrate_dynamic_fire() does not retain.

Usage

run_calibration_validation(
  scenario_template,
  best_params,
  observed_targets_path,
  cfg,
  n_reps = 20L,
  scratch_root,
  base_seed = 99999L
)

Arguments

scenario_template

Character path to scenario.txt inside the calibration scenario directory.

best_params

Named numeric vector of calibrated parameters (the calibrate_dynamic_fire() result's best_params).

observed_targets_path

Character path to the saved observed-targets .rds (the save_observed_fire_targets() output); reattached to the return value so the report has a single self-contained input.

cfg

The calibration_config list (for sim_years, weights).

n_reps

Integer number of replicate simulations at best_params.

scratch_root

Docker-visible host directory for the warm pool bind-mount (distinct from the main calibration scratch so concurrent runs do not collide).

base_seed

Base seed for the validation reps (base_seed + i per rep).

Value

A list with reps, best_params, observed, pixel_area_ha, sim_years, n_reps, loss, pool_image, and pool_digest.