Documentation of 'weka.classifiers.trees.j48.GainRatioSplitCrit' Java class
GainRatioSplitCrit
weka.classifiers.trees.j48

Class GainRatioSplitCrit

    • Constructor Detail

      • GainRatioSplitCrit

        public GainRatioSplitCrit()
    • Method Detail

      • 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
        Returns:
        value of splitting criterion. 0 by default
      • 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
      • getRevision

        public java.lang.String getRevision()
        Returns the revision string.
        Returns:
        the revision

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.