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 questionsDomain Explain modeling in AI/ML
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.
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.
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).
Keep practicing
Take the free AIF-C01 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AIF-C01 practice questions
- Question 1A company makes forecasts each quarter to decide how to optimize operations to meet expec…
- Question 2An AI practitioner has a database of animal photos. The AI practitioner wants to automati…
- Question 3A loan company is building a generative AI-based solution to offer new applicants discoun…
- Question 4What are tokens in the context of generative AI models?
- Question 5A company has installed a security camer a. The company uses an ML model to evaluate the …
- Question 6A company wants to use a large language model (LLM) on Amazon Bedrock for sentiment analy…
