What is a callback in Keras?

Updated May 16, 2026

Short answer

Callbacks are functions executed during training.

Deep explanation

They allow monitoring, logging, early stopping, and dynamic adjustments during training.

Real-world example

Stopping training when validation loss increases.

Common mistakes

  • Not using callbacks in long training jobs.

Follow-up questions

  • What are common callbacks?
  • Can callbacks modify training?

More Keras interview questions

View all →