类 GainRatioSplitCrit

所有已实现的接口:
Serializable, RevisionHandler

public final class GainRatioSplitCrit extends EntropyBasedSplitCrit
Class for computing the gain ratio for a given distribution.
版本:
$Revision: 1.8 $
作者:
Eibe Frank (eibe@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • GainRatioSplitCrit

      public GainRatioSplitCrit()
  • 方法详细资料

    • splitCritValue

      public final double splitCritValue(Distribution bags)
      This method is a straightforward implementation of the gain ratio criterion for the given distribution.
      覆盖:
      splitCritValue 在类中 SplitCriterion
      返回:
      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.
      参数:
      bags - the distribution
      totalnoInst - the weight of ALL instances
      numerator - the info gain
    • getRevision

      public String getRevision()
      Returns the revision string.
      返回:
      the revision