Skip to content

Accuracy

The proportion of correct answers among all model predictions: how many times the model guessed correctly, divided by the total number of examples.

Accuracy = (TP + TN) / (TP + TN + FP + FN)

When Deceptive

On imbalanced data, high accuracy means nothing. If spam is 1% of emails, a model that always answers 'not spam' has an accuracy of 99% — but is useless.

Therefore, accuracy is supplemented by precision, recall and F1.

See Also

← All terms