[
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: [email protected]
For additional commands, e-mail: [email protected]