Example usage for Java weka.classifiers.evaluation Evaluation fields, constructors, methods, implement or subclass
The text is from its open source code.
Evaluation(Instances data) Initializes all the counters for the evaluation. |
void | crossValidateModel(Classifier classifier, Instances data, int numFolds, Random random) Performs a (stratified if class is nominal) cross-validation for a classifier on a set of instances. |
String | evaluateModel(String classifierString, String[] options) Evaluates a classifier with the options given in an array of strings. |
String | evaluateModel(Classifier classifier, String[] options) Evaluates a classifier with the options given in an array of strings. |
double | evaluateModelOnceAndRecordPrediction(Classifier classifier, Instance instance) Evaluates the classifier on a single instance and records the prediction. |
double | evaluateModelOnceAndRecordPrediction(double[] dist, Instance instance) Evaluates the supplied distribution on a single instance. |
double | meanAbsoluteError() Returns the mean absolute error. |
String | toClassDetailsString() Generates a breakdown of the accuracy for each class (with default title), incorporating various information-retrieval statistics, such as true/false positive rate, precision/recall/F-Measure. |
String | toMatrixString(String title) Outputs the performance statistics as a classification confusion matrix. |
String | toMatrixString() Calls toMatrixString() with a default title. |
String | toSummaryString(String title, boolean printComplexityStatistics) Outputs the performance statistics in summary form. |
String | toSummaryString() Calls toSummaryString() with no title and no complexity stats. |