# Class (machine learning) > A category that a label can belong to. For example:[^1] A category that a [label](https://wiki.g15e.com/pages/Label%20(machine%20learning.txt)) can belong to. For example:[^1] - In a [binary classification](https://wiki.g15e.com/pages/Binary%20classification.txt) model that detects spam, the two classes might be *spam* and *not spam*. - In a model that identifies dog breeds, the classes might be *poodle*, *beagle*, *pug*, and so on. A [classification model](https://wiki.g15e.com/pages/Classification%20model.txt) predicts a class. In contrast, a [regression model](https://wiki.g15e.com/pages/Regression%20model.txt) predicts a number rather than a class.[^1] ## Footnotes [^1]: https://developers.google.com/machine-learning/glossary#class