org.apache.ctakes.assertion.attributes.features.selection
Class MutualInformationFeatureSelection<OUTCOME_T>

java.lang.Object
  extended by org.cleartk.classifier.feature.transform.TrainableExtractor_ImplBase<OUTCOME_T>
      extended by org.apache.ctakes.assertion.attributes.features.selection.FeatureSelection<OUTCOME_T>
          extended by org.apache.ctakes.assertion.attributes.features.selection.MutualInformationFeatureSelection<OUTCOME_T>
All Implemented Interfaces:
com.google.common.base.Predicate<org.cleartk.classifier.Feature>, org.cleartk.classifier.feature.transform.TrainableExtractor<OUTCOME_T>

public class MutualInformationFeatureSelection<OUTCOME_T>
extends FeatureSelection<OUTCOME_T>


Copyright (c) 2007-2012, Regents of the University of Colorado
All rights reserved.

Selects features via mutual information statistics between the features extracted from its sub-extractor and the outcome values they are paired with in classification instances.

Author:
Lee Becker

Nested Class Summary
static class MutualInformationFeatureSelection.CombineScoreMethod
          Specifies how scores for each outcome should be combined/aggregated into a single score
static class MutualInformationFeatureSelection.MutualInformationStats<OUTCOME_T>
          Helper class for aggregating and computing mutual information statistics
 
Field Summary
 
Fields inherited from class org.apache.ctakes.assertion.attributes.features.selection.FeatureSelection
isTrained, selectedFeatureNames
 
Fields inherited from class org.cleartk.classifier.feature.transform.TrainableExtractor_ImplBase
name
 
Constructor Summary
MutualInformationFeatureSelection(String name)
           
MutualInformationFeatureSelection(String name, int numFeatures)
           
MutualInformationFeatureSelection(String name, MutualInformationFeatureSelection.CombineScoreMethod combineScoreMethod, double smoothingCount, int numFeatures)
           
 
Method Summary
 void load(URI uri)
           
 void save(URI uri)
           
 void train(Iterable<org.cleartk.classifier.Instance<OUTCOME_T>> instances)
           
 
Methods inherited from class org.apache.ctakes.assertion.attributes.features.selection.FeatureSelection
apply, getFeatureName, transform, transform
 
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
 

Constructor Detail

MutualInformationFeatureSelection

public MutualInformationFeatureSelection(String name)

MutualInformationFeatureSelection

public MutualInformationFeatureSelection(String name,
                                         int numFeatures)

MutualInformationFeatureSelection

public MutualInformationFeatureSelection(String name,
                                         MutualInformationFeatureSelection.CombineScoreMethod combineScoreMethod,
                                         double smoothingCount,
                                         int numFeatures)
Method Detail

train

public void train(Iterable<org.cleartk.classifier.Instance<OUTCOME_T>> instances)

save

public void save(URI uri)
          throws IOException
Throws:
IOException

load

public void load(URI uri)
          throws IOException
Throws:
IOException


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.