Surprise icon indicating copy to clipboard operation
Surprise copied to clipboard

Added Spearman Correlation for similarities module.

Open gautamramk opened this issue 7 years ago • 5 comments

Hi, I have added a function to implement spearman correlation in the similarities module. I am very new to Open source contributions, please do bear with any errors. I have followed the steps as in the Contribution Guidelines. If I am missing anything, do let me know. Also I am unaware on how to test my code. Would require some guidance.

gautamramk avatar Apr 07 '18 10:04 gautamramk

Thanks for the PR!

It looks pretty good even though I haven't checked it in details yet.

For the tests, take a look at how to use pytest and take inspiration from the test_similarities module.

It would also be helpful to have some simple benchmark comparing Spearman with other metrics in terms of RMSE and computation time

NicolasHug avatar Apr 07 '18 10:04 NicolasHug

I'll run the tests, thanks a lot.

gautamramk avatar Apr 07 '18 10:04 gautamramk

This looks good and I'd like to merge it but could you please write a few tests in the test_similarities module?

You'll also need to update the AlgoBase.compute_similarities method.

NicolasHug avatar Apr 13 '18 12:04 NicolasHug

I am a bit short of time due to my exams. Shall I write the tests after my exams? I shall modify the AlgoBase.compute_similarities now itself though.

gautamramk avatar Apr 13 '18 14:04 gautamramk

No worries there's absolutely no rush! I just wanted to make sure you knew I need some tests before I can merge this ;)

NicolasHug avatar Apr 13 '18 14:04 NicolasHug