Recommender-Systems icon indicating copy to clipboard operation
Recommender-Systems copied to clipboard

KNN code

Open Leedia-exe opened this issue 4 years ago • 7 comments

Hey nikita, your course was very helpful thank you! i was wondering if you could send me the code (not in the jupiter format) and to ask if it is possible to aply recall and precision metrics in this algorithme Thanks again

Leedia-exe avatar May 13 '20 15:05 Leedia-exe

the .py version is right there in the same directory by the name 'knn recommender.py'. Also, recall and precision are possible for this algorithm, when your code predicts the rating of the recommended item and compare that with actual or test data.

nikitaa30 avatar May 13 '20 16:05 nikitaa30

Thanks a lot! Have a good day

Le mer. 13 mai 2020 à 17:03, Nikita Sharma [email protected] a écrit :

the .py version is right there in the same directory by the name 'knn recommender.py'. Also, recall and precision are possible for this algorithm, when your code predicts the rating of the recommended item and compare that with actual or test data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nikitaa30/Recommender-Systems/issues/1#issuecomment-628088001, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSGHJ4643E47SUWMX5JUXTRRLAERANCNFSM4M73OUFA .

Leedia-exe avatar May 13 '20 16:05 Leedia-exe

Can you give me a quick tip of how can i do it?

Le mer. 13 mai 2020 à 17:03, Nikita Sharma [email protected] a écrit :

the .py version is right there in the same directory by the name 'knn recommender.py'. Also, recall and precision are possible for this algorithm, when your code predicts the rating of the recommended item and compare that with actual or test data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nikitaa30/Recommender-Systems/issues/1#issuecomment-628088001, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSGHJ4643E47SUWMX5JUXTRRLAERANCNFSM4M73OUFA .

Leedia-exe avatar May 13 '20 16:05 Leedia-exe

sure, just found some quick links for you~ If you come across any issue, please let me know https://medium.com/@m_n_malaeb/recall-and-precision-at-k-for-recommender-systems-618483226c54

https://www.researchgate.net/figure/Precision-and-recall-of-recommendations-of-recommender-systems_tbl4_324481236

nikitaa30 avatar May 13 '20 17:05 nikitaa30

Amazing! Thank you

Le mer. 13 mai 2020 à 18:04, Nikita Sharma [email protected] a écrit :

sure, just found some quick links for you~ If you come across any issue, please let me know

https://medium.com/@m_n_malaeb/recall-and-precision-at-k-for-recommender-systems-618483226c54

https://www.researchgate.net/figure/Precision-and-recall-of-recommendations-of-recommender-systems_tbl4_324481236

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nikitaa30/Recommender-Systems/issues/1#issuecomment-628122519, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSGHJ7XBDJ73L6NNKIQDRTRRLHINANCNFSM4M73OUFA .

Leedia-exe avatar May 13 '20 18:05 Leedia-exe

hello, Sorry for all these questions, but in your knn algorithm we predicted the movies not the ratings, how can we apply recall/ precision then ? Thanks a lot

Le mer. 13 mai 2020 à 17:04, lydia younsi [email protected] a écrit :

Thanks a lot! Have a good day

Le mer. 13 mai 2020 à 17:03, Nikita Sharma [email protected] a écrit :

the .py version is right there in the same directory by the name 'knn recommender.py'. Also, recall and precision are possible for this algorithm, when your code predicts the rating of the recommended item and compare that with actual or test data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nikitaa30/Recommender-Systems/issues/1#issuecomment-628088001, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSGHJ4643E47SUWMX5JUXTRRLAERANCNFSM4M73OUFA .

Leedia-exe avatar May 14 '20 15:05 Leedia-exe

Mine is a content based knn, you should adapt a collaborative approach which outputs ratings, then you can compare those ratings.

nikitaa30 avatar May 15 '20 10:05 nikitaa30