What is Generalization?
In Turkish: Genelleme · Topic: Core concepts
A machine learning model's ability to perform well on new data it did not see during training. It shows whether the model learned the underlying pattern instead of memorizing the training examples.
How does it work?
A model tries to extract general patterns from its training examples. If it captures the underlying rule rather than memorizing, it can make accurate predictions on cases it has never met. To measure this, data is split into training, validation and test sets, and the test set is never used during training. A model that does well in training but poorly on the test set has overfit. Diverse data, avoiding needless model complexity and regularization techniques all help generalization.
Why does it matter?
A model that only works on its training data is of little use in the real world. Claims in AI news that a model adapts to new tasks are really about generalization. Whether a model also works in another hospital or another language is a question about this very property.
Example
A classifier trained on photos of cats and dogs generalizes well if it correctly recognizes a cat photo it has never seen before.
FAQ
What is the difference between generalization and overfitting?
Generalization means the model also works well on new data. In overfitting the model memorizes the training data and fails on new examples, so overfitting is a typical cause of poor generalization.
How is generalization measured?
By checking the model's performance on a test set that was not used in training. A large gap between training and test performance signals weak generalization.