ChiSqSelectorModel¶
-
class
pyspark.mllib.feature.
ChiSqSelectorModel
(java_model: py4j.java_gateway.JavaObject)[source]¶ Represents a Chi Squared selector model.
New in version 1.4.0.
Methods
call
(name, *a)Call method of java_model
transform
(vector)Applies transformation on a vector.
Methods Documentation
-
call
(name: str, *a: Any) → Any¶ Call method of java_model
-
transform
(vector: Union[VectorLike, pyspark.rdd.RDD[VectorLike]]) → Union[pyspark.mllib.linalg.Vector, pyspark.rdd.RDD[pyspark.mllib.linalg.Vector]][source]¶ Applies transformation on a vector.
New in version 1.4.0.
- Returns
pyspark.mllib.linalg.Vector
orpyspark.RDD
transformed vector(s).
Examples
- vector
pyspark.mllib.linalg.Vector
orpyspark.RDD
Input vector(s) to be transformed.
-