T
- the type of input objectpublic interface SoftClassifier<T> extends Classifier<T>
Modifier and Type | Method and Description |
---|---|
default int[] |
predict(T[] x,
double[][] posteriori)
Predicts the class labels of an array of instances.
|
int |
predict(T x,
double[] posteriori)
Predicts the class label of an instance and also calculate a posteriori
probabilities.
|
applyAsDouble, applyAsInt, predict, predict, score
int predict(T x, double[] posteriori)
x
- an instance to be classified.posteriori
- a posteriori probabilities on output.default int[] predict(T[] x, double[][] posteriori)
x
- the instances to be classified.posteriori
- a posteriori probabilities on output.