sharp.utils.scores_to_ordering

sharp.utils.scores_to_ordering(y, direction=-1)[source]

Converts an array with scores to a ranking.

If higher rank values are better, set direction to 1 instead.