You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by me...@apache.org on 2014/09/02 18:48:11 UTC

git commit: [MLlib] Squash bug in IndexedRowMatrix

Repository: spark
Updated Branches:
  refs/heads/master fbf2678c1 -> 0f16b23cd


[MLlib] Squash bug in IndexedRowMatrix

Kill this bug fast before it does damage.

Author: Reza Zadeh <ri...@gmail.com>

Closes #2224 from rezazadeh/indexrmbug and squashes the following commits:

53386d6 [Reza Zadeh] Squash bug in IndexedRowMatrix


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

Branch: refs/heads/master
Commit: 0f16b23cd17002fac05f3ecc58899be1b1121b82
Parents: fbf2678
Author: Reza Zadeh <ri...@gmail.com>
Authored: Tue Sep 2 09:48:05 2014 -0700
Committer: Xiangrui Meng <me...@databricks.com>
Committed: Tue Sep 2 09:48:05 2014 -0700

----------------------------------------------------------------------
 .../apache/spark/mllib/linalg/distributed/IndexedRowMatrix.scala   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/0f16b23c/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/IndexedRowMatrix.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/IndexedRowMatrix.scala b/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/IndexedRowMatrix.scala
index 132b3af..ac6eaea 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/IndexedRowMatrix.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/IndexedRowMatrix.scala
@@ -130,7 +130,7 @@ class IndexedRowMatrix(
     val indexedRows = rows.map(_.index).zip(mat.rows).map { case (i, v) =>
       IndexedRow(i, v)
     }
-    new IndexedRowMatrix(indexedRows, nRows, nCols)
+    new IndexedRowMatrix(indexedRows, nRows, B.numCols)
   }
 
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org