Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-7883

Fixing broken trainImplicit example in MLlib Collaborative Filtering documentation.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      The trainImplicit Scala example near the end of the MLlib Collaborative Filtering documentation refers to an ALS.trainImplicit function signature that does not exist. Rather than add an extra function, let's just fix the example.

      Currently, the example refers to a function that would have the following signature:
      def trainImplicit(ratings: RDD[Rating], rank: Int, iterations: Int, alpha: Double) : MatrixFactorizationModel

      Instead, let's change the example to refer to this function, which does exist (notice the addition of the lambda parameter):
      def trainImplicit(ratings: RDD[Rating], rank: Int, iterations: Int, lambda: Double, alpha: Double) : MatrixFactorizationModel

        Attachments

          Activity

            People

            • Assignee:
              dusenberrymw Mike Dusenberry
              Reporter:
              dusenberrymw Mike Dusenberry

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment