public class IsotonicCalibration extends BinaryCalibration
BinaryCalibration.CalibrationMode
base, folds, holdOut, mode
Modifier | Constructor and Description |
---|---|
|
IsotonicCalibration(BinaryScoreClassifier base,
BinaryCalibration.CalibrationMode mode)
Creates a new Isotonic Calibration object
|
protected |
IsotonicCalibration(IsotonicCalibration toCopy)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
calibrate(boolean[] label,
double[] deci,
int len)
This method perform the model calibration on the outputs verse the class
labels.
|
CategoricalResults |
classify(DataPoint data)
Performs classification on the given data point.
|
IsotonicCalibration |
clone() |
boolean |
supportsWeightedData()
Indicates whether the model knows how to train using weighted data points.
|
getCalibrationFolds, getCalibrationHoldOut, getCalibrationMode, getParameter, getParameters, setCalibrationFolds, setCalibrationHoldOut, setCalibrationMode, trainC, trainC
public IsotonicCalibration(BinaryScoreClassifier base, BinaryCalibration.CalibrationMode mode)
base
- the base model to calibrate the outputs ofmode
- the calibration mode to useprotected IsotonicCalibration(IsotonicCalibration toCopy)
toCopy
- the object to copyprotected void calibrate(boolean[] label, double[] deci, int len)
BinaryCalibration
calibrate
in class BinaryCalibration
label
- the set of labels, where true
indicates the positive
class label, and false
indicates the negative class label.deci
- the score associated with each label from the learning
algorithm.len
- the number of values (from zero) of the label and scores array
to use. This value may be less than the actual array sizepublic IsotonicCalibration clone()
clone
in interface Classifier
clone
in class BinaryCalibration
public CategoricalResults classify(DataPoint data)
Classifier
data
- the data point to classifypublic boolean supportsWeightedData()
Classifier
Copyright © 2017. All rights reserved.