Moved to pl.metrics.utils (some users have complained about this) TODO: add function back to functional (with deprecation warning) that simply calls new one