Classification Metrics
Machine Learning
Performance Metrics
Interview questions on Performance Metrics.
48 questions
Classification Metrics
Q2. What is the purpose of a confusion matrix?
Classification Metrics
Q3. Explain True Positive (TP) and False Positive (FP).
Classification Metrics
Q4. Define True Negative (TN) and False Negative (FN).
Classification Metrics
Q5. How can you use a confusion matrix to choose an appropriate threshold for a binary classifier?
Classification Metrics
Q6. Define accuracy score?
Classification Metrics
Q7. Write the mathematical expression of accuracy score?
Classification Metrics
Q8. What is the range of accuracy score?
Classification Metrics
Q9. How does accuracy is related with negative log(logistic) loss?
Classification Metrics
Q10. What is the main issue with accuracy score?
Classification Metrics
Q11. How can we overcome with accuracy score limitations?
Classification Metrics
Q12. What do you mean by precision? How can we calculate it?
Classification Metrics
Q13. When precision is preferred?
Classification Metrics
Q14. What is the range of precision value?
Classification Metrics
Q15. What are the weaknesses of precision as a metric in classification, and how can it be misleading in certain scenarios?
Classification Metrics
Q16. State one scenario where you should use precision of the system as evaluation metric?
Classification Metrics
Q17. What is the other name of recall?
Classification Metrics
Q18. Define recall score?
Classification Metrics
Q19. What does recall measures? How is it calculated?
Classification Metrics
Q20. What does higher value of recall indicates?
Classification Metrics
Q21. When should we use recall?
Classification Metrics
Q22. What is the range of recall metric?
Classification Metrics
Q23. What is the main limitation of recall metric?
Classification Metrics
Q24. State one scenario where recall is more desirable?
Classification Metrics
Q25. Explain the tradeoff between recall and precision?
Classification Metrics
Q26. Define F Scores?
Classification Metrics
Q27. What is F-1 Score? When should we use it?
Classification Metrics
Q28. What is range of F Scores?
Classification Metrics
Q29. What are the weaknesses of F-1 score?
Classification Metrics
Q30. Explain the difference between Type I and Type II errors in the context of a confusion matrix.
Classification Metrics
Q31. What is the main limitations with confusion matrix summarization?
Classification Metrics
Q32. What is precision and recall curve?
Classification Metrics
Q33. State the use of precision and recall curve?
Classification Metrics
Q34. How can we construct precision and recall curve?
Classification Metrics
Q35. What are the limitations of precision and recall curve?
Classification Metrics
Q36. What does ROC Curve depicts?
Classification Metrics
Q37. For an ideal model what should ROC-AUC?
Classification Metrics
Q38. State what does mean to have AUC of 0.2?
Classification Metrics
Q39. Can we use ROC-AUC score for multi-class classification?
Classification Metrics
Q40. What is the range of ROC-AUC?
Classification Metrics
Q41. What is the limitations of ROC-AUC score?
Classification Metrics
Q42. Your team is building a system to aid doctors in predicting whether a patient has cancer or not from their X-ray scan. Your colleague announces that the problem is solved now that they’ve built a system that can predict with 99.99% accuracy. How would you respond to that claim?
Classification Metrics
Q43. Given a binary classifier that outputs the following confusion matrix.
- Calculate the model’s precision, recall, and F1.
- What can we do to improve the model’s performance?
Classification Metrics
Q44. Consider a classification where $99%$ of data belongs to class A and $1%$ of data belongs to class B.
- If your model predicts A 100% of the time, what would the F1 score be? Hint: The F1 score when A is mapped to 0 and B to 1 is different from the F1 score when A is mapped to 1 and B to 0.
- If we have a model that predicts A and B at a random (uniformly), what would the expected be?
Classification Metrics
Q45. Show that the negative log-likelihood and cross-entropy are the same for binary classification tasks.
Classification Metrics
Q46. For classification tasks with more than two labels (e.g. MNIST with $10$ labels), why is cross-entropy a better loss function than MSE?
Classification Metrics
Q47. Consider a language with an alphabet of $27$ characters. What would be the maximal entropy of this language?
Classification Metrics