Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/9736#discussion_r45122717
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala
---
@@ -379,25 +379,43 @@ class RowMatrix @Since("1.0.0") (
* Note that this cannot be computed on matrices with more than 65535
columns.
*
* @param k number of top principal components.
- * @return a matrix of size n-by-k, whose columns are principal
components
+ * @return a matrix of size n-by-k, whose columns are principal
components, and
+ * a vector of values which indicate how much variance each principal
component
--- End diff --
It is not very clear from the doc whether we return the absolute variance
explained or the proportions. How about `a vector of proportions of variance
explained by each principal component` and change the method name to
`computePrincipalComponentsAndExplainedVariance`?
---
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]