public class ChiSqSelector
extends Object
implements scala.Serializable
Constructor and Description |
---|
ChiSqSelector(int numTopFeatures) |
Modifier and Type | Method and Description |
---|---|
ChiSqSelectorModel |
fit(RDD<LabeledPoint> data)
Returns a ChiSquared feature selector.
|
int |
numTopFeatures() |
public int numTopFeatures()
public ChiSqSelectorModel fit(RDD<LabeledPoint> data)
data
- an RDD[LabeledPoint]
containing the labeled dataset with categorical features.
Real-valued features will be treated as categorical for each distinct value.
Apply feature discretizer before using this function.