Delve into the practical applications of classification in machine learning. Discover how classification can be used to predict a person’s coffee consumption based on sleep patterns, analyze image content and group similar images, forecast transportation mode choices based on distance, and estimate race times based on historical data.
Table of Contents
Question
What is a use case for classification?
A. predicting how many cups of coffee a person will drink based on how many hours the person slept the previous night.
B. analyzing the contents of images and grouping images that have similar colors
C. predicting whether someone uses a bicycle to travel to work based on the distance from home to work
D. predicting how many minutes it will take someone to run a race based on past race times
Answer
C. predicting whether someone uses a bicycle to travel to work based on the distance from home to work
Explanation
The correct answer is C. predicting whether someone uses a bicycle to travel to work based on the distance from home to work.
Classification is a type of machine learning that can assign a label to an input based on a predefined set of categories. Classification can be used to solve problems that involve predicting a discrete outcome, such as yes or no, true or false, or A, B, C, etc.
A use case for classification is predicting whether someone uses a bicycle to travel to work based on the distance from home to work. This is a binary classification problem, as the possible outcomes are only two: bike or not bike. The input is the distance from home to work, which is a numerical feature, and the output is the label, which is a categorical feature. A classification model can learn from historical data of people who use or do not use bikes to travel to work and their distances from home to work, and then apply the learned patterns to new data to make predictions.
The other three options are not use cases for classification, but for regression. Regression is another type of machine learning that can predict a continuous value based on an input. Regression can be used to solve problems that involve predicting a numerical outcome, such as how much, how many, how long, etc.
- Predicting how many cups of coffee a person will drink based on how many hours the person slept the previous night: This is a regression problem, as the outcome is a numerical value (how many cups of coffee) that can vary in a continuous range.
- Analyzing the contents of images and grouping images that have similar colors: This is not a machine learning problem, but a computer vision problem. Computer vision is a field that deals with processing and understanding images and videos. Computer vision can use techniques such as image segmentation, color quantization, or clustering to analyze the contents of images and group images that have similar colors.
- Predicting how many minutes it will take someone to run a race based on past race times: This is a regression problem, as the outcome is a numerical value (how many minutes) that can vary in a continuous range.
Two-class classification provides the answer to simple two-choice questions such as Yes/No or True/False.
Incorrect Answers:
A: This is Regression.
B: This is Clustering.
D: This is Regression.
Reference
- Microsoft Learn > Azure > Machine Learning > Linear Regression component
- Previous Versions > Module Categories and Descriptions > Machine Learning Modules > Initialize Model > Clustering modules
Microsoft Azure AI Fundamentals AI-900 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Azure AI Fundamentals AI-900 exam and earn Microsoft Azure AI Fundamentals AI-900 certification.