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_runstr

The name of the run that defines a normalized value of 1.

summarypandas.DataFrame

The summary metrics to normalize (as returned by get_metric_summaries)

metric_setspandas.DataFrame

Metric metadata as returned by archive.get_metric_sets

Returns:
norm_summarypandas.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).