A machine learning task where the model assigns input data to predefined categories.
A machine learning task where the model assigns input data to predefined categories. Spam detection (spam or not spam), image recognition (cat or dog), and sentiment analysis (positive or negative) are all classification problems. One of the most common and practical applications of ML.
Classification is one of the most fundamental tasks in machine learning: take some input and sort it into predefined categories. Email spam filters classify messages as spam or not spam. Image recognition classifies photos as containing cats, dogs, or neither. Sentiment analysis classifies text as positive, negative, or neutral.
There are two main flavors. Binary classification has two categories (yes/no, spam/not-spam). Multi-class classification has many categories (classifying a news article as sports, politics, tech, or entertainment). The model learns the boundaries between categories from labeled training data — examples where humans have already assigned the correct category.
Before large language models, classification required training a dedicated model for each specific task. Now, LLMs can classify text with just a prompt: "Is this review positive or negative?" This zero-shot classification ability has democratized the technology — you don't need a data science team to build a classifier anymore. For high-stakes applications though, dedicated fine-tuned classifiers still tend to be more reliable and faster.
"We built a classifier that sorts incoming support tickets into billing, technical, and account issues — it routes 85% of tickets to the right team automatically."
The most common machine learning approach: training a model on labeled data where each example comes with the correct answer.
A function that converts a vector of numbers into a probability distribution — all values between 0 and 1 that sum to 1.
A mathematical function applied to a neuron's output that introduces non-linearity into the network.
An optimization algorithm that combines the best parts of two other methods — AdaGrad and RMSProp.
Artificial General Intelligence.
An autonomous AI system that can perceive its environment, make decisions, and take actions to achieve goals.
Browse our complete glossary or subscribe to our newsletter for the latest AI news and insights.