You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the tests, numpy complains about a "mean of empty slice". That happens because the calculation of the spearman correlation filters the labels it applies to as follows:
The filter is applied to remove instances for which there are ties in the prediction. Ties are problematic in the calculation of Spearman correlation and can cause a non-minor bias. But I also think that the current state of the code could be improved - at the very least the user should get a warning.
@kiudee@timokau even the script version takes ties into consideration. But we need to check that implementation on how they do it. As far as I remember we removed it because it was not correct or efficient ways of evaluating spearman correlation.
During the tests, numpy complains about a "mean of empty slice". That happens because the calculation of the spearman correlation filters the labels it applies to as follows:
cs-ranking/csrank/metrics_np.py
Line 24 in ba03234
And then averages its results:
cs-ranking/csrank/metrics_np.py
Line 29 in ba03234
Which may be empty (or consist of only
NaN
s) due to the previous filter. What is the intention behind that filter?CC @prithagupta
The text was updated successfully, but these errors were encountered: