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
Current implementation of SpearmanCorrCoef is very slow on large tensors with many duplicate elements, due to inefficient implementation in _rank_data iterating through each elements.
Pitch
Improve implementation of _rank_data function as following
🚀 Feature
More efficient implementation of
SpearmanCorrCoef
Motivation
Current implementation of
SpearmanCorrCoef
is very slow on large tensors with many duplicate elements, due to inefficient implementation in_rank_data
iterating through each elements.Pitch
Improve implementation of
_rank_data
function as followingwhich uses
torch.unique
andscatter_add_
to avoid python loops.The text was updated successfully, but these errors were encountered: