157

What is accuracy?

Correct predictions divided by total predictions.


Why is accuracy not enough?

With imbalanced data, a model that always predicts the majority class can still get high accuracy. So we also use precision, recall, and F1.


What is precision?

Precision tells us, among all the samples predicted as positive, how many were actually positive.


What is recall?

Recall tells us, among all the actual positive samples, how many were correctly identified by the model.


What is F1-score?

F1-score is the harmonic mean of precision and recall. It provides a balance between precision and recall.


What is a confusion matrix?

A confusion matrix is a table that shows how many samples were correctly and incorrectly classified for each class. It helps us understand which classes the model confuses with each other.


What is TP?

True Positive means the model predicted positive and the actual class was also positive.


What is FP?

False Positive means the model predicted positive, but the actual class was negative.


What is FN?

False Negative means the model predicted negative, but the actual class was positive.


What is TN?

True Negative means the model predicted negative and the actual class was also negative.


What is specificity?

Among all actual negatives, how many the model correctly identified as negative. Formula: TN / (TN + FP).


What is sensitivity?

Another name for recall. It is how many actual positives were found.


Precision vs recall: which is more important?

It depends on the task. In disease screening, recall is more important because missing a patient is dangerous. In spam detection, precision may matter more.


Macro average vs weighted average?

Macro average takes a simple average over classes. Weighted average gives more weight to classes with more samples.


What are top-1 and top-5 accuracy?

Top-1 means the correct class must be the model's first choice. Top-5 means the correct class must be within the model's five best guesses.


What is the ROC curve?

It plots the true positive rate against the false positive rate at different thresholds.


What is AUC?

Area Under the ROC Curve. A value near 1 means a good model. A value of 0.5 means random guessing.