Skip to main content
BVDNETBVDNET
ServicesWorkLibraryAboutPricingBlogContact
Contact
  1. Home
  2. AI Woordenboek
  3. Core Concepts
  4. What is the Difference Between Regression and Classification?
book-openCore Concepts
Beginner
2026-W17

What is the Difference Between Regression and Classification?

Classification predicts categories (spam/not spam); regression predicts continuous values (house price). These are the two fundamental supervised ML problem types.

Also known as:
regressie vs classificatie
regression
regressie
AI Intel Pipeline
What is the Difference Between Regression and Classification?

What is Regression vs Classification?

Classification predicts a discrete category label ("spam" or "not spam"), while regression predicts a continuous numerical value (house price: €350,000). These are the two fundamental types of supervised machine learning problems — virtually every prediction task falls into one or the other.

Why It Matters

Choosing the right problem type determines the model architecture, loss function, evaluation metrics, and entire approach. Misframing a problem (treating a regression as classification or vice versa) leads to poor results. Understanding this distinction is the first step in any ML project.

How It Works

Classification:

  • Output: discrete class label from a finite set
  • Examples: spam detection (spam/not spam), image recognition (cat/dog/bird), diagnosis (positive/negative)
  • Loss functions: cross-entropy, hinge loss
  • Metrics: accuracy, precision, recall, F1, AUC-ROC
  • Models: logistic regression, random forest, SVM, neural network classifier

Regression:

  • Output: continuous numerical value
  • Examples: house price prediction (€350K), temperature forecasting (21.5°C), stock price prediction, demand estimation
  • Loss functions: MSE (mean squared error), MAE (mean absolute error)
  • Metrics: RMSE, MAE, R² score
  • Models: linear regression, polynomial regression, random forest regressor, neural network regressor

How to decide:

  • "Which category?" → Classification
  • "How much/many?" → Regression
  • "Will it rain?" (yes/no) → Classification
  • "How many mm of rain?" → Regression

Grey areas:

  • Ordinal classification — classes have an order (low/medium/high risk) — can be treated as classification or regression
  • Binning — converting continuous values into categories (age → "young/middle/senior") turns regression into classification
  • Probability output — classifiers can output probabilities (0.87 = 87% likely spam), blurring the line

LLMs and classification/regression:

  • LLMs perform classification via prompting: "Classify this review as positive or negative"
  • LLMs perform regression less naturally but can: "Estimate the price of this house given..."
  • For high-volume tasks, purpose-built classifiers/regressors are more efficient than LLMs

Example

A real estate company uses both: a classifier determines the property type (apartment/house/commercial) and a regressor predicts the sale price. Same input data (location, size, age, features), but two different prediction tasks requiring different models and evaluation metrics.

Sources

  1. Google ML Crash Course – Framing ML Problems
  2. scikit-learn – Supervised Learning

Need help implementing AI?

I can help you apply this concept to your business.

Get in touch

Related Concepts

Tokenizer
A tokenizer converts raw text into tokens — the discrete units a language model processes — using subword algorithms like BPE or SentencePiece.
Artificial Intelligence (AI)
Artificial intelligence is the field of computer science that builds systems capable of performing tasks normally requiring human intelligence, such as learning, reasoning, and perception.
Batch Size
Batch size (examples per update) and learning rate (step size for weight updates) are the two most important hyperparameters controlling how neural networks train.
Benchmark (AI Evaluation)
A benchmark is a standardized test used to measure and compare AI model performance, providing reproducible scores across tasks like reasoning, coding, and knowledge.

AI Consulting

Need help understanding or implementing this concept?

Talk to an expert
Previous

AI Red Teaming

Next

Reinforcement Learning (RL)

BVDNETBVDNET

Web development and AI automation. Done properly.

Company

  • About
  • Contact
  • FAQ

Resources

  • Services
  • Work
  • Library
  • Blog
  • Pricing

Connect

  • LinkedIn
  • Email

© 2026 BVDNET. All rights reserved.

Privacy Policy•Terms of Service•Cookie Policy