java.lang.Object
org.tribuo.classification.dtree.impurity.Entropy
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, LabelImpurity

public class Entropy extends Object implements LabelImpurity
A log_e entropy impurity measure.
  • Constructor Details

    • Entropy

      public Entropy()
  • Method Details

    • impurityNormed

      public double impurityNormed(double[] input)
      Description copied from interface: LabelImpurity
      Calculates the impurity, assuming it's input is a normalized probability distribution.
      Specified by:
      impurityNormed in interface LabelImpurity
      Parameters:
      input - The input probability distribution.
      Returns:
      The impurity.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getProvenance

      public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
      Specified by:
      getProvenance in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>