org.apache.mahout.math.stats.entropy
Class InformationGainRatio

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.mahout.common.AbstractJob
          extended by org.apache.mahout.math.stats.entropy.InformationGainRatio
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public final class InformationGainRatio
extends AbstractJob

A job to calculate the normalized information gain.


Constructor Summary
InformationGainRatio()
           
 
Method Summary
 double getEntropy()
           
 double getInformationGain()
           
 double getInformationGainRatio()
           
static void main(String[] args)
           
 int run(String[] args)
           
 
Methods inherited from class org.apache.mahout.common.AbstractJob
addFlag, addInputOption, addOption, addOption, addOption, addOption, addOutputOption, buildOption, getAnalyzerClassFromOption, getCLIOption, getCombinedTempPath, getGroup, getInputPath, getOption, getOption, getOutputPath, getOutputPath, getTempPath, getTempPath, hasOption, keyFor, maybePut, parseArguments, parseDirectories, prepareJob, prepareJob, prepareJob, setS3SafeCombinedInputPath, shouldRunNextPhase
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Constructor Detail

InformationGainRatio

public InformationGainRatio()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

run

public int run(String[] args)
        throws Exception
Throws:
Exception

getEntropy

public double getEntropy()

getInformationGain

public double getInformationGain()

getInformationGainRatio

public double getInformationGainRatio()


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