|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.mllib.feature.PCAModel
public class PCAModel
Model fitted by PCA
that can project vectors to a low-dimensional space using PCA.
param: k number of principal components. param: pc a principal components Matrix. Each column is one principal component.
Method Summary | |
---|---|
int |
k()
|
DenseMatrix |
pc()
|
Vector |
transform(Vector vector)
Transform a vector by computed Principal Components. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.spark.mllib.feature.VectorTransformer |
---|
transform, transform |
Method Detail |
---|
public int k()
public DenseMatrix pc()
public Vector transform(Vector vector)
transform
in interface VectorTransformer
vector
- vector to be transformed.
Vector must be the same length as the source vectors given to PCA.fit()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |