smile.classification
Interface SoftClassifier<T>
-
- Type Parameters:
T- the type of input object
- All Superinterfaces:
- Classifier<T>
- All Known Implementing Classes:
- AdaBoost, DecisionTree, GradientTreeBoost, KNN, LDA, LogisticRegression, Maxent, NaiveBayes, NeuralNetwork, QDA, RandomForest, RDA, SVM
public interface SoftClassifier<T> extends Classifier<T>
Soft classifiers calculate a posteriori probabilities besides the class label of an instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intpredict(T x, double[] posteriori)Predicts the class label of an instance and also calculate a posteriori probabilities.-
Methods inherited from interface smile.classification.Classifier
predict, predict
-
-
-
-
Method Detail
-
predict
int predict(T x, double[] posteriori)
Predicts the class label of an instance and also calculate a posteriori probabilities. Classifiers may NOT support this method since not all classification algorithms are able to calculate such a posteriori probabilities.- Parameters:
x- the instance to be classified.posteriori- the array to store a posteriori probabilities on output.- Returns:
- the predicted class label
-
-
DataMelt 3.0 © DataMelt by jWork.ORG