public static enum BinaryCalibration.CalibrationMode extends Enum<BinaryCalibration.CalibrationMode>
Enum Constant and Description |
---|
CV
The model will be trained by cross validation, using the specified
number of
BinaryCalibration.setCalibrationFolds(int) . |
HOLD_OUT
The model will have a random
fraction of the data set held out, and trained on the rest of the
data. |
NAIVE
The naive methods trains the classifier on the whole data set, and
then produces the scores for each training point.
|
Modifier and Type | Method and Description |
---|---|
static BinaryCalibration.CalibrationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BinaryCalibration.CalibrationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BinaryCalibration.CalibrationMode NAIVE
public static final BinaryCalibration.CalibrationMode CV
BinaryCalibration.setCalibrationFolds(int)
. The default is 3 folds,
where the classifier will be trained on the folds not in the set, and
then produce scores for the unobserved test points in the held out
fold.public static final BinaryCalibration.CalibrationMode HOLD_OUT
fraction
of the data set held out, and trained on the rest of the
data. The scores will then be produced for the held out data and used
for calibration.public static BinaryCalibration.CalibrationMode[] values()
for (BinaryCalibration.CalibrationMode c : BinaryCalibration.CalibrationMode.values()) System.out.println(c);
public static BinaryCalibration.CalibrationMode 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.