jsat.classifiers.calibration
Class IsotonicCalibration
- java.lang.Object
-
- jsat.classifiers.calibration.BinaryCalibration
-
- jsat.classifiers.calibration.IsotonicCalibration
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Classifier, Parameterized
public class IsotonicCalibration extends BinaryCalibration
Isotonic Calibration is non-parametric, and only assumes that the underlying distribution from negative to positive examples is strictly a non-decreasing function. It will then attempt to model the distribution. This may over-fit for small data sizes, and imposes an additional O(log n) search look up when performing classification, where n is <= the number of data points in the data set.
Isotonic Calibration inherently creates non-adjacent bins of varying size. Smooth transitions in output probability are created by simple linear interpolation between bin values.
See: Niculescu-Mizil, A.,&Caruana, R. (2005). Predicting Good Probabilities with Supervised Learning. International Conference on Machine Learning (pp. 625–632). Retrieved from here- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jsat.classifiers.calibration.BinaryCalibration
BinaryCalibration.CalibrationMode
-
-
Constructor Summary
Constructors Constructor and Description IsotonicCalibration(BinaryScoreClassifier base, BinaryCalibration.CalibrationMode mode)Creates a new Isotonic Calibration object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description CategoricalResultsclassify(DataPoint data)Performs classification on the given data point.IsotonicCalibrationclone()booleansupportsWeightedData()Indicates whether the model knows how to train using weighted data points.-
Methods inherited from class jsat.classifiers.calibration.BinaryCalibration
getCalibrationFolds, getCalibrationHoldOut, getCalibrationMode, setCalibrationFolds, setCalibrationHoldOut, setCalibrationMode, train
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jsat.classifiers.Classifier
train
-
Methods inherited from interface jsat.parameters.Parameterized
getParameter, getParameters
-
-
-
-
Constructor Detail
-
IsotonicCalibration
public IsotonicCalibration(BinaryScoreClassifier base, BinaryCalibration.CalibrationMode mode)
Creates a new Isotonic Calibration object- Parameters:
base- the base model to calibrate the outputs ofmode- the calibration mode to use
-
-
Method Detail
-
clone
public IsotonicCalibration clone()
- Specified by:
clonein interfaceClassifier- Specified by:
clonein classBinaryCalibration
-
classify
public CategoricalResults classify(DataPoint data)
Description copied from interface:ClassifierPerforms classification on the given data point.- Parameters:
data- the data point to classify- Returns:
- the results of the classification.
-
supportsWeightedData
public boolean supportsWeightedData()
Description copied from interface:ClassifierIndicates whether the model knows how to train using weighted data points. If it does, the model will train assuming the weights. The values returned by this method may change depending on the parameters set for the model.- Returns:
- true if the model supports weighted data, false otherwise
-
-
DataMelt 3.0 © DataMelt by jWork.ORG