Bytes
rocket

Free Masterclass on Mar 21

Beginner AI Workshop: Build an AI Agent & Start Your AI Career

Pooling and Activation Functions

Last Updated: 20th November, 2025

After convolution, CNNs use pooling layers to simplify and stabilize the learning process.

Pooling Layer

Pooling reduces the spatial dimensions while keeping the important features.

  • Max Pooling: Takes the largest value in each region (e.g., 2×2 window).
  • Average Pooling: Takes the average value.

This step helps reduce computation and prevent overfitting by ignoring unimportant variations.

Activation Functions

After pooling, activations bring non-linearity to the network.
Without activation functions, CNNs would behave like linear models — unable to learn complex boundaries.

ActivationFormulaUse
ReLUmax(0, x)Default activation in CNNs
Sigmoid1 / (1 + e⁻ˣ)Binary classification
Softmaxeˣ / ΣeˣMulti-class output layer

Sigmoid: Maps input values to a range between 0 and 1, useful for binary classification.

Sigmoid(x) = 1 / (1 + math.exp(-x))

ReLU: Introduces non-linearity:

ReLU(x) = max(0, x)

Tanh: Maps input values to a range between -1 and 1, helping center data around zero.

Tanh(x) = (math.exp(x) - math.exp(-x)) / (math.exp(x) + math.exp(-x))

Softmax: Converts logits into probabilities that sum to 1, ideal for multi-class classification.

output = [math.exp(i) / sum(math.exp(j) for j in inputs) for i in inputs]

Together, convolution, pooling, and activation layers form the backbone of CNNs.

Module 2: Inside Convolutional Neural Networks (CNNs)Pooling and Activation Functions

Top Tutorials

Logo
Data Science

Python

Python is a popular and versatile programming language used for a wide variety of tasks, including web development, data analysis, artificial intelligence, and more.

8 Modules37 Lessons59857 Learners
Start Learning
Logo
Data Science

SQL

The SQL for Beginners Tutorial is a concise and easy-to-follow guide designed for individuals new to Structured Query Language (SQL). It covers the fundamentals of SQL, a powerful programming language used for managing relational databases. The tutorial introduces key concepts such as creating, retrieving, updating, and deleting data in a database using SQL queries.

9 Modules40 Lessons13986 Learners
Start Learning
Logo
Data Science

Data Science

Learn Data Science for free with our data science tutorial. Explore essential skills, tools, and techniques to master Data Science and kickstart your career

8 Modules31 Lessons8792 Learners
Start Learning
  • Official Address
  • 4th floor, 133/2, Janardhan Towers, Residency Road, Bengaluru, Karnataka, 560025
  • Communication Address
  • Follow Us
  • facebookinstagramlinkedintwitteryoutubetelegram

© 2026 AlmaBetter