label_ranking_loss
- sklearn.metrics.label_ranking_loss(y_true, y_score, *, sample_weight=None)
Compute Ranking loss measure.
Compute the average number of label pairs that are incorrectly ordered given y_score weighted by the size of the label set and the number of labels not in the label set.
This is similar to the error set size, but weighted by the number of relevant and irrelevant labels. The best performance is achieved with a ranking loss of zero.
Read more in the User Guide.