Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3945#discussion_r22741550
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala 
---
    @@ -212,7 +212,7 @@ class RowMatrix(
           tol: Double,
           mode: String): SingularValueDecomposition[RowMatrix, Matrix] = {
         val n = numCols().toInt
    -    require(k > 0 && k <= n, s"Request up to n singular values but got 
k=$k and n=$n.")
    +    require(k > 0 && k <= n, s"Request up to n singular values but got 
k=$k and numCols=$n.")
    --- End diff --
    
    Oops, I just realized the original error message is incorrect.  It should 
say "Requested up to k"  (not "n").  The rest is fine.  Can you please fix this 
in IndexedRowMatrix as well?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to