class PCA extends AnyRef
A feature transformer that projects vectors to a low-dimensional space using PCA.
- Annotations
- @Since( "1.4.0" )
- Source
- PCA.scala
- Alphabetic
- By Inheritance
- PCA
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
PCA(k: Int)
- k
number of principal components
- Annotations
- @Since( "1.4.0" )
Value Members
-
def
fit(sources: JavaRDD[Vector]): PCAModel
Java-friendly version of
fit()
.Java-friendly version of
fit()
.- Annotations
- @Since( "1.4.0" )
-
def
fit(sources: RDD[Vector]): PCAModel
Computes a PCAModel that contains the principal components of the input vectors.
Computes a PCAModel that contains the principal components of the input vectors.
- sources
source vectors
- Annotations
- @Since( "1.4.0" )
-
val
k: Int
- Annotations
- @Since( "1.4.0" )