public abstract class EntropyBasedSplitCrit extends SplitCriterion
Modifier and Type | Field and Description |
---|---|
protected static double |
log2
The log of 2.
|
Constructor and Description |
---|
EntropyBasedSplitCrit() |
Modifier and Type | Method and Description |
---|---|
double |
logFunc(double num)
Help method for computing entropy.
|
double |
newEnt(Distribution bags)
Computes entropy of distribution after splitting.
|
double |
oldEnt(Distribution bags)
Computes entropy of distribution before splitting.
|
double |
splitEnt(Distribution bags)
Computes entropy after splitting without considering the
class values.
|
splitCritValue, splitCritValue, splitCritValue, splitCritValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRevision
public final double logFunc(double num)
public final double oldEnt(Distribution bags)
public final double newEnt(Distribution bags)
public final double splitEnt(Distribution bags)
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.