You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "19 Lee (JIRA)" <ji...@apache.org> on 2015/06/23 13:49:00 UTC

[jira] [Updated] (SPARK-8563) Bug that IndexedRowMatrix.computeSVD() yields the U with wrong numCols

     [ https://issues.apache.org/jira/browse/SPARK-8563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

19 Lee updated SPARK-8563:
--------------------------
    Description: 
IndexedRowMatrix.computeSVD() yields a wrong U which *U.numCols() = self.nCols*.

It should have been *U.numCols() = k = svd.U.numCols()*

{code}
self = U * sigma * V.transpose
(m x n) = (m x n) * (k x k) * (k x n)
-->
(m x n) = (m x k) * (k x k) * (k x n)
{code}


Proposed fix: https://github.com/apache/spark/pull/6949


  was:

IndexedRowMatrix.computeSVD() yields a wrong U which *U.numCols() = self.nCols*.

It should have been *U.numCols() = k = svd.U.numCols()*

{code}
(m x n) = (m x n) * (k x k) * (k x n)
-->
(m x n) = (m x k) * (k x k) * (k x n)
{code}


Proposed fix: https://github.com/apache/spark/pull/6949



> Bug that IndexedRowMatrix.computeSVD() yields the U with wrong numCols
> ----------------------------------------------------------------------
>
>                 Key: SPARK-8563
>                 URL: https://issues.apache.org/jira/browse/SPARK-8563
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>    Affects Versions: 1.3.1
>            Reporter: 19 Lee
>
> IndexedRowMatrix.computeSVD() yields a wrong U which *U.numCols() = self.nCols*.
> It should have been *U.numCols() = k = svd.U.numCols()*
> {code}
> self = U * sigma * V.transpose
> (m x n) = (m x n) * (k x k) * (k x n)
> -->
> (m x n) = (m x k) * (k x k) * (k x n)
> {code}
> Proposed fix: https://github.com/apache/spark/pull/6949



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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