ChiSqSelectorModel

class pyspark.mllib.feature.ChiSqSelectorModel(java_model: py4j.java_gateway.JavaObject)

Represents a Chi Squared selector model.

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]]

Applies transformation on a vector.

Returns
pyspark.mllib.linalg.Vector or pyspark.RDD

transformed vector(s).

Examples

vectorpyspark.mllib.linalg.Vector or pyspark.RDD

Input vector(s) to be transformed.