You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2013/07/17 02:31:15 UTC
[18/50] [abbrv] git commit: Fix a comment
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 <ma...@gmail.com>
Authored: Sun Jul 14 08:03:13 2013 +0000
Committer: Matei Zaharia <ma...@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
}