Class Entropy
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
A log_e entropy impurity measure.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
double
impurityNormed
(double[] input) Calculates the impurity, assuming it's input is a normalized probability distribution.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
Methods inherited from interface org.tribuo.classification.dtree.impurity.LabelImpurity
impurity, impurity, impurity, impurity, impurityWeighted, impurityWeighted
-
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 interfaceLabelImpurity
- Parameters:
input
- The input probability distribution.- Returns:
- The impurity.
-
toString
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()- Specified by:
getProvenance
in interfacecom.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
-