AIF-C01 practice question 18 of 25

An AI practitioner has built a deep learning model to classify the types of materials in images. The AI practitioner now wants to measure the model performance. Which metric will help the AI practitioner evaluate the performance of the model?

Full set: 397 questions

Domain Explain modeling in AI/ML

Answer options
A: Confusion matrix Correct answer
B: Correlation matrix
C: R2 score
D: Mean squared error (MSE)
Correct Answer:
A. Confusion matrix
Explanation

The scenario describes an image classification task, which is a type of supervised learning problem where the goal is to assign a label (class) to an input. A confusion matrix is a fundamental tool for evaluating the performance of a classification model. It provides a detailed breakdown of how the model's predictions compare to the actual labels, showing the counts of true positives, true negatives, false positives, and false negatives for each class. From the confusion matrix, other key classification metrics such as accuracy, precision, recall, and F1-score can be calculated, offering a comprehensive view of the model's performance.

Why Incorrect

B. Correlation matrix: This is used during exploratory data analysis to understand the linear relationships between different features in a dataset, not to evaluate a trained model's predictive performance.
C. R2 score: The R-squared (R²) score, or coefficient of determination, is a metric used to evaluate the performance of regression models, not classification models.
D. Mean squared error (MSE): This is a common loss function and evaluation metric for regression models that measures the average squared difference between the predicted and actual values.

References

1. Official Vendor Documentation: Amazon SageMaker Developer Guide. "Model quality metrics". For multiclass classification problems

SageMaker Autopilot generates a confusion matrix to help visualize the performance of the model. It states

"The confusion matrix shows how many of the model's predictions were correct for each class." This confirms its use for evaluating classification models.

2. University Courseware: Stanford University

CS231n: Convolutional Neural Networks for Visual Recognition. "Lecture 3 | Loss Functions and Optimization". The course notes explain that for classification

"it is more common to track the accuracy of the classifier

which is the fraction of classifications that are correct. A confusion matrix is a helpful tool for analyzing the performance of a classifier on a (set of) data." (Section: "Aside: Visualizing the loss function").

3. University Courseware: Hastie

T.

Tibshirani

R.

& Friedman

J. (2009). The Elements of Statistical Learning: Data Mining

Inference

and Prediction. Springer. In Chapter 4

"Linear Methods for Classification

" the concept of a confusion matrix is introduced as a primary method for summarizing the results of a classifier on test data (Section 4.4.2

The Learning Problem).

Scroll to Top