spearman - Spearman rank correlation

rlscore.measure.spearman(Y, P)

Spearman correlation.

Parameters:
Y : {array-like}, shape = [n_samples] or [n_samples, n_labels]

Correct labels

P : {array-like}, shape = [n_samples] or [n_samples, n_labels]

Predicted labels

Returns:
correlation : float

number between -1 and 1