public abstract class FeatureSelection<OUTCOME_T>
extends org.cleartk.ml.feature.transform.TrainableExtractor_ImplBase<OUTCOME_T>
implements com.google.common.base.Predicate<org.cleartk.ml.Feature>
Modifier and Type | Field and Description |
---|---|
protected boolean |
isTrained |
protected Set<String> |
selectedFeatureNames |
Constructor and Description |
---|
FeatureSelection(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(org.cleartk.ml.Feature feature) |
protected String |
getFeatureName(org.cleartk.ml.Feature feature) |
org.cleartk.ml.Instance<OUTCOME_T> |
transform(org.cleartk.ml.Instance<OUTCOME_T> instance) |
List<org.cleartk.ml.Feature> |
transform(List<org.cleartk.ml.Feature> features) |
isTransformable, selectTransformableFeatures
public FeatureSelection(String name)
public boolean apply(org.cleartk.ml.Feature feature)
apply
in interface com.google.common.base.Predicate<org.cleartk.ml.Feature>
public org.cleartk.ml.Instance<OUTCOME_T> transform(org.cleartk.ml.Instance<OUTCOME_T> instance)
transform
in interface org.cleartk.ml.feature.transform.TrainableExtractor<OUTCOME_T>
protected String getFeatureName(org.cleartk.ml.Feature feature)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.