Class EntropySplitCrit

All Implemented Interfaces:
Serializable, RevisionHandler

public final class EntropySplitCrit extends EntropyBasedSplitCrit
Class for computing the entropy for a given distribution.
Version:
$Revision: 10055 $
Author:
Eibe Frank (eibe@cs.waikato.ac.nz)
See Also:
  • Constructor Details

    • EntropySplitCrit

      public EntropySplitCrit()
  • Method Details

    • splitCritValue

      public final double splitCritValue(Distribution bags)
      Computes entropy for given distribution.
      Overrides:
      splitCritValue in class SplitCriterion
      Returns:
      value of splitting criterion. 0 by default
    • splitCritValue

      public final double splitCritValue(Distribution train, Distribution test)
      Computes entropy of test distribution with respect to training distribution.
      Overrides:
      splitCritValue in class SplitCriterion
      Returns:
      value of splitting criterion. 0 by default
    • getRevision

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