stats
def spearmanr(X)
#
Calculate the spearman rank correlation between observer rankings.
Source code in src/mfpbench/stats.py
def kendalltau(X)
#
Calculate the kendall tau rank correlation between observer rankings.
Source code in src/mfpbench/stats.py
def cosine(X)
#
Calculate the cosine rank correlation between observer rankings.
Source code in src/mfpbench/stats.py
def rank_correlation(x, *, method='cosine')
#
Calculate rank correlation between observer rankings.
Will return the correlation between the two rankings, otherwise it will return a correlation matrix where each row represents a random variable.
PARAMETER | DESCRIPTION |
---|---|
x |
The rankings to calculate correlations for where each row
TYPE:
|
method |
The method to use
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ndarray
|
The correlation matrix |