GitHub user sbourke opened a pull request: https://github.com/apache/spark/pull/3536
[MLLIB][SPARK-4675] Find similar products and similar users in MatrixFactorizationModel Using the latent feature space that is learnt in MatrixFactorizationModel, I have added 2 new functions to find similar products and similar users. A user of the API can for example pass a product ID, and get the closest products based on the feature space. You can merge this pull request into a Git repository by running: $ git pull https://github.com/sbourke/spark master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/3536.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3536 ---- commit 956ca1b86aacb22fabd52740ce0c6fef5524bae8 Author: Senior Stefano El Bour-que <steven.bou...@schibsted.es> Date: 2014-11-28T08:40:40Z added functionality to find similar users and similar products commit 12e6b6b3a2cbfa1baa29449396e7e85bed1dec56 Author: Steven Bourke <steve@stevens-imac.local> Date: 2014-11-30T23:22:46Z added unit test to make sure id isnt teh same ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org