Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/3536#discussion_r21078944 --- Diff: mllib/src/main/scala/org/apache/spark/mllib/recommendation/MatrixFactorizationModel.scala --- @@ -95,6 +95,35 @@ class MatrixFactorizationModel( } /** + * Recommends similar products + * + * @param user the user to find similar users for + * @param num how many products to return. The number returned may be less than this. + * @return [[Rating]] objects, each of which contains the given user ID, a user ID, and a + * "score" in the rating field. Each represents one recommended user, and they are sorted + * by score, decreasing. The first returned is the one predicted to be most similar + * user to the specified user ID. The score is an opaque value that indicates how strongly + * recommended the user is. + */ + def recommendSimilariUsers(user: Int, num: Int): Array[Rating] = --- End diff -- Typo: `Similari`, also below.
--- 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