Package weka.classifiers.trees.j48
Class EntropySplitCrit
java.lang.Object
weka.classifiers.trees.j48.SplitCriterion
weka.classifiers.trees.j48.EntropyBasedSplitCrit
weka.classifiers.trees.j48.EntropySplitCrit
- All Implemented Interfaces:
Serializable
,RevisionHandler
Class for computing the entropy for a given distribution.
- Version:
- $Revision: 10055 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the revision string.final double
splitCritValue
(Distribution bags) Computes entropy for given distribution.final double
splitCritValue
(Distribution train, Distribution test) Computes entropy of test distribution with respect to training distribution.Methods inherited from class weka.classifiers.trees.j48.EntropyBasedSplitCrit
lnFunc, newEnt, oldEnt, splitEnt
Methods inherited from class weka.classifiers.trees.j48.SplitCriterion
splitCritValue, splitCritValue
-
Constructor Details
-
EntropySplitCrit
public EntropySplitCrit()
-
-
Method Details
-
splitCritValue
Computes entropy for given distribution.- Overrides:
splitCritValue
in classSplitCriterion
- Returns:
- value of splitting criterion. 0 by default
-
splitCritValue
Computes entropy of test distribution with respect to training distribution.- Overrides:
splitCritValue
in classSplitCriterion
- Returns:
- value of splitting criterion. 0 by default
-
getRevision
Returns the revision string.- Returns:
- the revision
-