jsat.classifiers.calibration
Class PlattCalibration
- java.lang.Object
-
- jsat.classifiers.calibration.BinaryCalibration
-
- jsat.classifiers.calibration.PlattCalibration
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Classifier, Parameterized
public class PlattCalibration extends BinaryCalibration
Platt Calibration essentially performs logistic regression on the output scores of a model against their class labels. While first described for SVMs, Platt's method can be used for any scoring algorithm in general.
See:
- Platt, J. C. (1999). Probabilistic Outputs for Support Vector Machines and Comparisons to Regularized Likelihood Methods. Advances in Large Margin Classifiers (pp. 61–74). MIT Press. Retrieved from here
- Lin, H.-T., Lin, C.-J.,&Weng, R. C. (2007). A note on Platt’s probabilistic outputs for support vector machines. Machine learning, 68(3), 267–276. Retrieved from here
- 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 PlattCalibration(BinaryScoreClassifier base, BinaryCalibration.CalibrationMode mode)Creates a new Platt 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.PlattCalibrationclone()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
-
PlattCalibration
public PlattCalibration(BinaryScoreClassifier base, BinaryCalibration.CalibrationMode mode)
Creates a new Platt Calibration object- Parameters:
base- the base model to calibrate the outputs ofmode- the calibration mode to use
-
-
Method Detail
-
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
-
clone
public PlattCalibration clone()
- Specified by:
clonein interfaceClassifier- Specified by:
clonein classBinaryCalibration
-
-
DataMelt 3.0 © DataMelt by jWork.ORG