public class InfoGainSplitCriterion extends AbstractOptionHandler implements SplitCriterion
Modifier and Type | Field and Description |
---|---|
com.github.javacliparser.FloatOption |
minBranchFracOption |
Constructor and Description |
---|
InfoGainSplitCriterion() |
Modifier and Type | Method and Description |
---|---|
static double |
computeEntropy(double[] dist) |
static double |
computeEntropy(double[][] dists) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double |
getMeritOfSplit(double[] preSplitDist,
double[][] postSplitDists)
Computes the merit of splitting for a given ditribution before the split and after it.
|
double |
getRangeOfMerit(double[] preSplitDist)
Computes the range of splitting merit
|
static int |
numSubsetsGreaterThanFrac(double[][] distributions,
double minFrac) |
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
measureByteSize
public double getMeritOfSplit(double[] preSplitDist, double[][] postSplitDists)
SplitCriterion
getMeritOfSplit
in interface SplitCriterion
preSplitDist
- the class distribution before the splitpostSplitDists
- the class distribution after the splitpublic double getRangeOfMerit(double[] preSplitDist)
SplitCriterion
getRangeOfMerit
in interface SplitCriterion
preSplitDist
- the class distribution before the splitpublic static double computeEntropy(double[] dist)
public static double computeEntropy(double[][] dists)
public static int numSubsetsGreaterThanFrac(double[][] distributions, double minFrac)
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string
representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.