spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [18/50] [abbrv] git commit: Fix a comment
Date Wed, 17 Jul 2013 00:31:15 GMT
Fix a comment


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/931e4c96
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/931e4c96
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/931e4c96

Branch: refs/heads/master
Commit: 931e4c96ef56302cc384086d1faa0f4ca3258e8b
Parents: c5c38d1
Author: Matei Zaharia <matei.zaharia@gmail.com>
Authored: Sun Jul 14 08:03:13 2013 +0000
Committer: Matei Zaharia <matei.zaharia@gmail.com>
Committed: Sun Jul 14 08:03:13 2013 +0000

----------------------------------------------------------------------
 mllib/src/main/scala/spark/mllib/recommendation/ALS.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/931e4c96/mllib/src/main/scala/spark/mllib/recommendation/ALS.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/spark/mllib/recommendation/ALS.scala b/mllib/src/main/scala/spark/mllib/recommendation/ALS.scala
index dec3701..21eb212 100644
--- a/mllib/src/main/scala/spark/mllib/recommendation/ALS.scala
+++ b/mllib/src/main/scala/spark/mllib/recommendation/ALS.scala
@@ -161,7 +161,7 @@ class ALS private (var numBlocks: Int, var rank: Int, var iterations:
Int, var l
     for (productBlock <- 0 until numBlocks) {
       // Create an array of (product, Seq(Rating)) ratings
       val groupedRatings = blockRatings(productBlock).groupBy(_.product).toArray
-      // Sort them by user ID
+      // Sort them by product ID
       val ordering = new Ordering[(Int, ArrayBuffer[Rating])] {
         def compare(a: (Int, ArrayBuffer[Rating]), b: (Int, ArrayBuffer[Rating])): Int =
a._1 - b._1
       }


Mime
View raw message