Skip to content

Instantly share code, notes, and snippets.

@twolodzko
Last active July 1, 2023 23:33
Show Gist options
  • Select an option

  • Save twolodzko/7becd98ff256ef826b56945de297700d to your computer and use it in GitHub Desktop.

Select an option

Save twolodzko/7becd98ff256ef826b56945de297700d to your computer and use it in GitHub Desktop.
Using ALS Matrix Factorization for Making Recommendations in Spark
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmetlekesiz
Copy link

Hi,

I'm trying to understand how did you implement MPR but I am a little bit confused. Could you please give the pseudo code for MPR?. I will implement for my binary only dataset with PySpark ALS. Thank in advance.

Best wishes,
Ahmet

@twolodzko
Copy link
Author

@ahmetlekesiz You can find some explanation here https://stats.stackexchange.com/questions/460166/mean-percentage-ranking-in-implicit-feedback-als I agree that the Spark implementation is not the most readable way to do this. Check also the links I provided in the notebook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment