normalize_metric_summaries¶
- rubin_sim.maf.run_comparison.normalize_metric_summaries(baseline_run, summary, metric_sets=None)¶
Create a normalized
pandas.DataFrame
of metric summary values.- Parameters:
- baseline_run
str
The name of the run that defines a normalized value of 1.
- summary
pandas.DataFrame
The summary metrics to normalize (as returned by
get_metric_summaries
)- metric_sets
pandas.DataFrame
Metric metadata as returned by
archive.get_metric_sets
- baseline_run
- Returns:
- norm_summary
pandas.DataFrame
Metric summary values are returned in a
pandas.DataFrame
, with each column providing the metrics for one run, and each row the values for one metric. The metric names constitute the columns, and the index names are the canonical run names. Values of 1 indicate metric values that match that of the baseline, differences with with indicate fractional improvement (if > 1) or degradation (if < 1).
- norm_summary