You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mllib-feature-extraction.md
+54-1Lines changed: 54 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -507,7 +507,6 @@ v_N
507
507
508
508
This example below demonstrates how to load a simple vectors file, extract a set of vectors, then transform those vectors using a transforming vector value.
509
509
510
-
511
510
<divclass="codetabs">
512
511
<divdata-lang="scala">
513
512
{% highlight scala %}
@@ -531,3 +530,57 @@ val transformedData2 = parsedData.map(x => transformer.transform(x))
531
530
</div>
532
531
533
532
533
+
## PCA
534
+
535
+
A feature transformer that projects vectors to a low-dimensional space using PCA.
536
+
Details you can read at [dimensionality reduction](mllib-dimensionality-reduction.html).
537
+
538
+
### Example
539
+
540
+
The following code demonstrates how to compute principal components on a `Vector`
541
+
and use them to project the vectors into a low-dimensional space while keeping associated labels
542
+
for calculation a [Linear Regression]((mllib-linear-methods.html))
0 commit comments