Package org.apache.spark.mllib.feature
Interface VectorTransformer
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ChiSqSelectorModel
,ElementwiseProduct
,Normalizer
,PCAModel
,StandardScalerModel
Trait for transformation of a vector
-
Method Summary
-
Method Details
-
transform
Applies transformation on a vector.- Parameters:
vector
- vector to be transformed.- Returns:
- transformed vector.
-
transform
Applies transformation on an RDD[Vector].- Parameters:
data
- RDD[Vector] to be transformed.- Returns:
- transformed RDD[Vector].
-
transform
Applies transformation on a JavaRDD[Vector].- Parameters:
data
- JavaRDD[Vector] to be transformed.- Returns:
- transformed JavaRDD[Vector].
-