Package org.apache.spark.mllib.feature
Class PCA
Object
org.apache.spark.mllib.feature.PCA
A feature transformer that projects vectors to a low-dimensional space using PCA.
 
param: k number of principal components
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
PCApublic PCA(int k) 
 
- 
- 
Method Details- 
fitComputes aPCAModelthat contains the principal components of the input vectors.- Parameters:
- sources- source vectors
- Returns:
- (undocumented)
 
- 
fitJava-friendly version offit().- Parameters:
- sources- (undocumented)
- Returns:
- (undocumented)
 
- 
kpublic int k()
 
-