Surprise icon indicating copy to clipboard operation
Surprise copied to clipboard

Add spearman correlation

Open gautamramk opened this issue 7 years ago • 11 comments

It would be useful to add Spearman Correlation to the similarities module. It is very similar to Pearson's correlation, except a rank is used, instead of ratings.

gautamramk avatar Apr 07 '18 03:04 gautamramk

Shall I work on it?

gautamramk avatar Apr 07 '18 09:04 gautamramk

Sure go ahead :)

NicolasHug avatar Apr 07 '18 10:04 NicolasHug

Hello @gautamramk ,

you're still working on this issue?.

If not, then I would like to take over.

Yours sincerely Marc Feger

ghost avatar Nov 10 '18 15:11 ghost

Hey @NicolasHug, I think I can take over the task because there's been no response for three days.

Can you please assign me to the issue?

ghost avatar Nov 13 '18 10:11 ghost

Sure.

Have you looked at #168? It seems that the bulk of the work is done already and what's left is a benchmark to assess how fast / accurate spearman would be.

NicolasHug avatar Nov 13 '18 13:11 NicolasHug

Hmm looks like I cannot assign you to the issue because you don't have write rights. It's not important though so don't worry.

NicolasHug avatar Nov 13 '18 13:11 NicolasHug

All right, all right.

I see @gautamramk is working with a fork. So should I copy the code and improve it? Or should I fork the fork? :D

What would be a good procedure here ?

ghost avatar Nov 13 '18 15:11 ghost

Or can the PR be added to another branch in this project so that I can work from my fork ?

ghost avatar Nov 13 '18 15:11 ghost

I think a good way to do it would be to pull the PR branch (look here) in your own fork / clone.

Then you can either directly work on this local branch of yours, or branch off it to keep it clean (that's what I do).

You'll still need to make a new PR though.

NicolasHug avatar Nov 13 '18 15:11 NicolasHug

Ah okay, I understand.

Thanks for the hint.

ghost avatar Nov 13 '18 16:11 ghost

Okay done ! I will work on it.

This worked out well:

git fetch surprise_origin pull/168/head:spearman
git checkout spearman
git push origin spearman

ghost avatar Nov 13 '18 16:11 ghost