All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.j48.GainRatioSplitCrit

java.lang.Object
    |
    +----weka.classifiers.j48.SplitCriterion
            |
            +----weka.classifiers.j48.EntropyBasedSplitCrit
                    |
                    +----weka.classifiers.j48.GainRatioSplitCrit

public final class GainRatioSplitCrit
extends EntropyBasedSplitCrit
Class for computing the gain ratio for a given distribution.

Version:
$Revision: 1.4 $
Author:
Eibe Frank (eibe@cs.waikato.ac.nz)

Constructor Index

 o GainRatioSplitCrit()
 

Method Index

 o splitCritValue(Distribution)
This method is a straightforward implementation of the gain ratio criterion for the given distribution.
 o splitCritValue(Distribution, double, double)
This method computes the gain ratio in the same way C4.5 does.

Constructor Detail

 o GainRatioSplitCrit
public GainRatioSplitCrit()

Method Detail

 o splitCritValue
public final double splitCritValue(Distribution bags)
          This method is a straightforward implementation of the gain ratio criterion for the given distribution.
Overrides:
splitCritValue in class SplitCriterion
 o splitCritValue
public final double splitCritValue(Distribution bags,
                                   double totalnoInst,
                                   double numerator)
          This method computes the gain ratio in the same way C4.5 does.
Parameters:
bags - the distribution
totalnoInst - the weight of ALL instances
numerator - the info gain

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home