|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectorg.apache.spark.mllib.feature.ChiSqSelector
public class ChiSqSelector
:: Experimental :: Creates a ChiSquared feature selector. param: numTopFeatures number of features that selector will select (ordered by statistic value descending)
| Constructor Summary | |
|---|---|
ChiSqSelector(int numTopFeatures)
|
|
| Method Summary | |
|---|---|
ChiSqSelectorModel |
fit(RDD<LabeledPoint> data)
Returns a ChiSquared feature selector. |
int |
numTopFeatures()
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChiSqSelector(int numTopFeatures)
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||