spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject git commit: [MLlib] Squash bug in IndexedRowMatrix
Date Tue, 02 Sep 2014 16:48:21 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.1 e13631291 -> e6972ea7f


[MLlib] Squash bug in IndexedRowMatrix

Kill this bug fast before it does damage.

Author: Reza Zadeh <rizlar@gmail.com>

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

53386d6 [Reza Zadeh] Squash bug in IndexedRowMatrix

(cherry picked from commit 0f16b23cd17002fac05f3ecc58899be1b1121b82)
Signed-off-by: Xiangrui Meng <meng@databricks.com>


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

Branch: refs/heads/branch-1.1
Commit: e6972ea7f05f45ed5c7a2d5747464af588b2bab1
Parents: e136312
Author: Reza Zadeh <rizlar@gmail.com>
Authored: Tue Sep 2 09:48:05 2014 -0700
Committer: Xiangrui Meng <meng@databricks.com>
Committed: Tue Sep 2 09:48:17 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/e6972ea7/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


Mime
View raw message