jsat.classifiers.calibration
Interface BinaryScoreClassifier
-
- All Superinterfaces:
- Classifier, java.lang.Cloneable, java.io.Serializable
- All Known Implementing Classes:
- ALMA2, ALMA2K, AROW, BOGD, CPM, DCD, DCDs, DCSVM, DUOL, EmphasisBoost, Forgetron, LSSVM, ModestAdaBoost, NHERD, OSKL, PassiveAggressive, Pegasos, PegasosK, Perceptron, PlattSMO, Projectron, RegressorToClassifier, ROMMA, SBP, SCW, STGD, SVMnoBias
public interface BinaryScoreClassifier extends Classifier
Many algorithms linear a binary separation between two classes A and B by representing the target labels with a-1ad1. At prediction, the output is a real valued number - where the sign indicates the class label. This interface indicates that an algorithm conforms such behavior, and that the "0" class corresponds to the-1label, and the "1" class corresponds to the1label.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description BinaryScoreClassifierclone()doublegetScore(DataPoint dp)Returns the numeric score for predicting a class of a given data point, where the sign of the value indicates which class the data point is predicted to belong to.-
Methods inherited from interface jsat.classifiers.Classifier
classify, supportsWeightedData, train, train
-
-
-
-
Method Detail
-
getScore
double getScore(DataPoint dp)
Returns the numeric score for predicting a class of a given data point, where the sign of the value indicates which class the data point is predicted to belong to.- Parameters:
dp- the data point to predict the class label of- Returns:
- the score for the given data point
-
clone
BinaryScoreClassifier clone()
- Specified by:
clonein interfaceClassifier
-
-
DataMelt 3.0 © DataMelt by jWork.ORG