public static enum ImpurityScore.ImpurityMeasure extends Enum<ImpurityScore.ImpurityMeasure>
Enum Constant and Description |
---|
CLASSIFICATION_ERROR |
GINI |
INFORMATION_GAIN |
INFORMATION_GAIN_RATIO |
NMI
Normalized Mutual Information.
|
Modifier and Type | Method and Description |
---|---|
static ImpurityScore.ImpurityMeasure |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImpurityScore.ImpurityMeasure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImpurityScore.ImpurityMeasure INFORMATION_GAIN
public static final ImpurityScore.ImpurityMeasure INFORMATION_GAIN_RATIO
public static final ImpurityScore.ImpurityMeasure NMI
ImpurityScore.getScore()
value will be
the same as INFORMATION_GAIN
, however - the gain returned
is considerably different - and is a normalization of the mutual
information between the split and the class label by the class and
split entropy.public static final ImpurityScore.ImpurityMeasure GINI
public static final ImpurityScore.ImpurityMeasure CLASSIFICATION_ERROR
public static ImpurityScore.ImpurityMeasure[] values()
for (ImpurityScore.ImpurityMeasure c : ImpurityScore.ImpurityMeasure.values()) System.out.println(c);
public static ImpurityScore.ImpurityMeasure valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017. All rights reserved.