public class Entropy extends Object implements LabelImpurity
Constructor and Description |
---|
Entropy() |
Modifier and Type | Method and Description |
---|---|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
double |
impurityNormed(double[] input)
Calculates the impurity, assuming it's input is a normalized probability distribution.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
impurity, impurity, impurity, impurity, impurityWeighted, impurityWeighted
public double impurityNormed(double[] input)
LabelImpurity
impurityNormed
in interface LabelImpurity
input
- The input probability distribution.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.