public final class InfoGainSplitCrit extends EntropyBasedSplitCrit
| Constructor and Description |
|---|
InfoGainSplitCrit() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRevision()
Returns the revision string.
|
double |
splitCritValue(Distribution bags)
This method is a straightforward implementation of the information gain
criterion for the given distribution.
|
double |
splitCritValue(Distribution bags,
double totalNoInst)
This method computes the information gain in the same way C4.5 does.
|
double |
splitCritValue(Distribution bags,
double totalNoInst,
double oldEnt)
This method computes the information gain in the same way C4.5 does.
|
lnFunc, newEnt, oldEnt, splitEntsplitCritValue, splitCritValue, splitCritValuepublic final double splitCritValue(Distribution bags)
splitCritValue in class SplitCriterionpublic final double splitCritValue(Distribution bags, double totalNoInst)
bags - the distributiontotalNoInst - weight of ALL instances (including the ones with missing
values).public final double splitCritValue(Distribution bags, double totalNoInst, double oldEnt)
bags - the distributiontotalNoInst - weight of ALL instancesoldEnt - entropy with respect to "no-split"-model.public java.lang.String getRevision()