Skip to content

Undesratnding the usefullness of the ranks transformation #201

Closed Answered by jakobrunge
guramaB asked this question in Q&A
Discussion options

You must be logged in to vote

Dear Barbora

ad 1) Check it yourself, you need to run argsort twice to get ranks:

a=np.array([0.4, 0.8, 0.1])
print(np.argsort(a))
print(np.argsort(np.argsort(a)))
[2 0 1]
[1 2 0]

ad 2) Honestly, this is just a very empirical finding that ranks work better and it would be great if someone could study this in detail. What you describe as problematic is exactly the idea: rescaling all dimensions to ranks avoids the problem of very different scales in different dimensions.

Jakob

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@guramaB
Comment options

Answer selected by guramaB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants