org.apache.ctakes.assertion.attributes.features.selection
Class FeatureSelection<OUTCOME_T>
java.lang.Object
org.cleartk.classifier.feature.transform.TrainableExtractor_ImplBase<OUTCOME_T>
org.apache.ctakes.assertion.attributes.features.selection.FeatureSelection<OUTCOME_T>
- All Implemented Interfaces:
- com.google.common.base.Predicate<org.cleartk.classifier.Feature>, org.cleartk.classifier.feature.transform.TrainableExtractor<OUTCOME_T>
- Direct Known Subclasses:
- Chi2FeatureSelection, MutualInformationFeatureSelection
public abstract class FeatureSelection<OUTCOME_T>
- extends org.cleartk.classifier.feature.transform.TrainableExtractor_ImplBase<OUTCOME_T>
- implements com.google.common.base.Predicate<org.cleartk.classifier.Feature>
Fields inherited from class org.cleartk.classifier.feature.transform.TrainableExtractor_ImplBase |
name |
Methods inherited from class org.cleartk.classifier.feature.transform.TrainableExtractor_ImplBase |
isTransformable, selectTransformableFeatures |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Predicate |
equals |
Methods inherited from interface org.cleartk.classifier.feature.transform.TrainableExtractor |
load, save, train |
isTrained
protected boolean isTrained
selectedFeatureNames
protected Set<String> selectedFeatureNames
FeatureSelection
public FeatureSelection(String name)
apply
public boolean apply(org.cleartk.classifier.Feature feature)
- Specified by:
apply
in interface com.google.common.base.Predicate<org.cleartk.classifier.Feature>
transform
public org.cleartk.classifier.Instance<OUTCOME_T> transform(org.cleartk.classifier.Instance<OUTCOME_T> instance)
- Specified by:
transform
in interface org.cleartk.classifier.feature.transform.TrainableExtractor<OUTCOME_T>
transform
public List<org.cleartk.classifier.Feature> transform(List<org.cleartk.classifier.Feature> features)
getFeatureName
protected String getFeatureName(org.cleartk.classifier.Feature feature)
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.