Package se.hb.jcp.ml
Interface IClassProbabilityClassifier
-
- All Superinterfaces:
IClassifier,IClassifierInformation,java.io.Serializable
- All Known Implementing Classes:
BogusClassProbabilityClassifier,LinearClassifier,SVMClassifier,SVMClassifier
public interface IClassProbabilityClassifier extends IClassifier, java.io.Serializable
Represents an instance of a specific machine learning classification algorithm. Contract for JCP use: 1. The Classifier must be serializable, both as untrained and as trained.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublepredict(cern.colt.matrix.DoubleMatrix1D instance, double[] probabilityEstimates)Predicts the target probabilities for the supplied instance.-
Methods inherited from interface se.hb.jcp.ml.IClassifier
fit, fitNew, predict
-
Methods inherited from interface se.hb.jcp.ml.IClassifierInformation
getAttributeCount, getLabels, isTrained, nativeStorageTemplate
-
-
-
-
Method Detail
-
predict
double predict(cern.colt.matrix.DoubleMatrix1D instance, double[] probabilityEstimates)Predicts the target probabilities for the supplied instance.- Parameters:
instance- the instanceprobabilityEstimates- a double[] array for storing the predicted probabilities for each of target values in the order assumed by JCP.- Returns:
- the predicted target of the instance.
-
-