compass.pipeline.targets.normalize_targets#

normalize_targets(targets)[source]#

Validate and copy a mapping of metric names to minimum values

Parameters:

targets (dict or None) – Metric names and finite numeric lower bounds. None produces an empty mapping.

Returns:

dict – Validated targets, independent of the input mapping.