public class Chi2FeatureSelection<OUTCOME_T> extends FeatureSelection<OUTCOME_T>
isTrained, selectedFeatureNames
Constructor and Description |
---|
Chi2FeatureSelection(String name) |
Chi2FeatureSelection(String name,
double threshold) |
Chi2FeatureSelection(String name,
double threshold,
boolean yates)
Constructor that can let use control the yate's correction
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(org.cleartk.ml.Feature feature) |
void |
load(URI uri) |
void |
save(URI uri) |
void |
train(Iterable<org.cleartk.ml.Instance<OUTCOME_T>> instances) |
getFeatureName, transform, transform
isTransformable, selectTransformableFeatures
public Chi2FeatureSelection(String name)
public Chi2FeatureSelection(String name, double threshold)
public Chi2FeatureSelection(String name, double threshold, boolean yates)
name
- threshold
- yates
- : true for using yate's correction, false for turn off yate's correctionpublic boolean apply(org.cleartk.ml.Feature feature)
apply
in interface com.google.common.base.Predicate<org.cleartk.ml.Feature>
apply
in class FeatureSelection<OUTCOME_T>
public void save(URI uri) throws IOException
IOException
public void load(URI uri) throws IOException
IOException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.