Enum Class DecisionTreeInfoGain.GainCriteria
- All Implemented Interfaces:
Serializable,Comparable<DecisionTreeInfoGain.GainCriteria>,java.lang.constant.Constable
- Enclosing class:
- DecisionTreeInfoGain
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA measure of the quality of fit.A measure of statistical dispersion.A measure of randomness or uncertainty. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DecisionTreeInfoGain.GainCriteria[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHANNON_ENTROPY
A measure of randomness or uncertainty.For a categorical variable having \(C\) distinct values over a data set \(S\), the Shannon Entropy is defined as $$\sum_{i=1}^{C}p_i\log(p_i)$$ where $$p_i = Pr(Y=i)$$ and where $$p_i \log(p_i) := 0$$ if \(p_i=0\).
-
GINI_INDEX
A measure of statistical dispersion.For a categorical variable having \(C\) distinct values over a data set \(S\), the Gini index is defined as $$ I(S)=\sum_{\begin{array}{c}i,j=1\\i\ne j\end{array}}^C p(i|S)=1-\sum^C_{i=1}p^2(i|S) $$ where \( p(i|S) \) denotes the probability that the variable is equal to the state \(i\) on the data set, \(S\).
-
DEVIANCE
A measure of the quality of fit.For a categorical variable having \(C\) distinct values over a data set \(S\), the Deviance measure is $$\sum_{i=1}^{C}n_i\log(p_i)$$ where \(p_i = Pr(Y=i)\) and \(n_i\) is the number of cases with \(Y=i\) on the node.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-