szte.csd.indicatorsel
Class CondEntropyIndicatorSelector

java.lang.Object
  extended by szte.csd.indicatorsel.CondEntropyIndicatorSelector
All Implemented Interfaces:
IndicatorSelector

public class CondEntropyIndicatorSelector
extends java.lang.Object

The conditonal entropy indicator evaluator. H(C|W) = H(C,W)/H(C) = [SUM SUM p(c,w)*log( p(c|w)] / SUM p(c) where C \in {POS,NEG} the classes and W \in {w present,w not present}


Constructor Summary
CondEntropyIndicatorSelector()
           
 
Method Summary
 double calcFeatureScore(java.util.Map<java.lang.Boolean,java.lang.Double> df, java.util.Map<java.lang.Boolean,java.lang.Double> n)
           
 java.util.Set<java.lang.String> getIndicators(DataHandler vsm)
          The greedy selection of features based on the calcFeatureScore abstract method.
 java.util.Set<java.lang.String> getTopRankedFeatures(DataHandler vsm)
           
 void reset()
           
 void setThreshold(double t)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CondEntropyIndicatorSelector

public CondEntropyIndicatorSelector()
Method Detail

calcFeatureScore

public double calcFeatureScore(java.util.Map<java.lang.Boolean,java.lang.Double> df,
                               java.util.Map<java.lang.Boolean,java.lang.Double> n)

getTopRankedFeatures

public java.util.Set<java.lang.String> getTopRankedFeatures(DataHandler vsm)
                                                     throws DataMiningException
Throws:
DataMiningException

reset

public void reset()

getIndicators

public java.util.Set<java.lang.String> getIndicators(DataHandler vsm)
                                              throws DataMiningException
The greedy selection of features based on the calcFeatureScore abstract method. It cacultes basic frequencies for the different feature evaluators.

Specified by:
getIndicators in interface IndicatorSelector
Throws:
DataMiningException

setThreshold

public void setThreshold(double t)
Specified by:
setThreshold in interface IndicatorSelector