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

Fixing broken trainImplicit example in MLlib Collaborative Filtering documentation.

    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

            dusenberrymw Mike Dusenberry
            dusenberrymw Mike Dusenberry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: