Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8563

Bug that IndexedRowMatrix.computeSVD() yields the U with wrong numCols

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2, 1.1.1, 1.2.2, 1.3.1, 1.4.1
    • Fix Version/s: 1.0.3, 1.1.2, 1.2.3, 1.3.2, 1.4.1, 1.5.0
    • Component/s: MLlib
    • Labels:
      None

      Description

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

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

      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)
      

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

        Attachments

          Activity

            People

            • Assignee:
              lee19 19 Lee
              Reporter:
              lee19 19 Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: