Recalibrate the Cost Model from an Observed Run
Source:R/cost-analysis.R
ssd_calibrate_cost_from_run.RdRe-fits the per-task cost model from a run's measured hc task durations
(the cost-analysis timings), returning an ssdsims_cost_calibration of the
same shape ssd_calibrate_cost() produces - so it drops straight into
ssd_estimate_cost() - but derived from real measurements rather than the
synthetic micro-benchmark. The fixed addend comes from the measured fit task
durations. Read-only: no pipeline, no RNG, no writes.
Usage
ssd_calibrate_cost_from_run(
scenario,
root = scenario_results_dir(scenario),
host = NULL
)Arguments
- scenario
An
ssdsims_scenariofromssd_define_scenario().- root
The run's results root (the
fit/hcshard trees live under it). Defaults toscenario_results_dir()forscenario.- host
Optional CPU description (a
.hostvalue) to select when the run spans more than one host.NULL(the default) requires a single-host run.
Details
Because the calibration is architecture-specific, timings from different
.host values are never silently pooled: a run spanning more than one host
requires an explicit host, or the function aborts listing the hosts found.