Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/88#discussion_r10724717
--- Diff: docs/mllib-linear-algebra.md ---
@@ -59,3 +59,17 @@ val = decomposed.S.data
println("singular values = " + s.toArray.mkString)
{% endhighlight %}
+
+
+# Principal Component Analysis
+
+Computes the top k principal component coefficients for the m-by-n data
matrix X.
+Rows of X correspond to observations and columns correspond to variables.
+The coefficient matrix is n-by-k. Each column of the return matrix
contains coefficients
+for one principal component, and the columns are in descending
+order of component variance.
+This function centers the data and uses the
+singular value decomposition (SVD) algorithm.
--- End diff --
Does this line fit into the one above?
---
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.
---