A class is a category that a label or prediction can belong to in a classification task. Classification models predict classes, such as spam or not spam, rather than continuous numeric values.
A category that a label can belong to. For example: - In a binary classification model that detects spam, the two classes might be spam and not spam. - In a multi-class classification model that identifies dog breeds, the classes might be poodle , beagle , pug, and so on. A classification model predicts a class. In contrast, a regression model predicts a number rather than a class. See Classification in Machine Learning Crash Course for more information.