Accuracy is the fraction of predictions the model gets right. Itβs a measure of how well the model performs at the given task.
Accuracy = \frac{Number\ of\ Correct\ Predictions}{Total\ Number\ of\ Predictions}
Consider a model trained to classify emails as either spam or not spam. Say we have an evaluation set made up of 100 spam emails. During an evaluation, if the model successfully classifies 50 emails as spam, it will have an Accuracy of 0.5.
Accuracy = \frac{Number\ of\ Correct\ Predictions}{Total\ Number\ of\ Predictions} = \frac{50}{100} = 0.5