juniorKeras

What is an activation function in Keras?

Updated May 16, 2026

Short answer

Activation functions introduce non-linearity into neural networks.

Deep explanation

They help models learn complex patterns by transforming outputs of neurons.

Real-world example

ReLU used in image recognition models.

Common mistakes

  • Using linear activation in hidden layers.

Follow-up questions

  • What is ReLU?
  • Why not use sigmoid everywhere?

More Keras interview questions

View all →