| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public double | Returns: classification accuracy metricThe percent of correct predictions of a classifier in total. |
| public double | |
| public double | |
| public double | Returns: classification recallThe percent of the positive examples that were not recognized by the classifier. |
| ClassificationMetrics | back to summary |
|---|---|
| public ClassificationMetrics() | |
| getAccuracy | back to summary |
|---|---|
| public double getAccuracy() The percent of correct predictions of a classifier in total. Tells how often the classifier is correct for some given test set. Note that accuracy can be a misleading metric for imbalanced data sets. Formula: Accuracy = (TP+TN) / (TP+TN+FP+FN)
| |
| getF1score | back to summary |
|---|---|
| public double getF1score() The mean/balance of the recall and precision metrics.
| |
| getPrecision | back to summary |
|---|---|
| public double getPrecision() The percent of correct positive predictions. This metrics answers the question: when classifier gives positive prediction, how often is it correct? Formula: Precision = TP/(TP+FP)
| |
| getRecall | back to summary |
|---|---|
| public double getRecall() The percent of the positive examples that were not recognized by the classifier. This metric answers the question: when it is actually positive class, how often does it give positive prediction Formula: Recall = TP / (TP+FN)
| |