|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.mllib.feature.PCA
public class PCA
A feature transformer that projects vectors to a low-dimensional space using PCA.
param: k number of principal components
Constructor Summary | |
---|---|
PCA(int k)
|
Method Summary | |
---|---|
PCAModel |
fit(JavaRDD<Vector> sources)
Java-friendly version of fit() |
PCAModel |
fit(RDD<Vector> sources)
Computes a PCAModel that contains the principal components of the input vectors. |
int |
k()
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PCA(int k)
Method Detail |
---|
public int k()
public PCAModel fit(RDD<Vector> sources)
PCAModel
that contains the principal components of the input vectors.
sources
- source vectors
public PCAModel fit(JavaRDD<Vector> sources)
fit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |