AI Terms Dictionary

A comprehensive multilingual AI terminology dictionary

Definition

Regularization is a crucial concept in machine learning designed to reduce generalization error without significantly increasing training error. It works by discouraging models from learning overly complex patterns that fit noise in the training data rather than the underlying signal. Common methods include L1 (Lasso) and L2 (Ridge) regularization, dropout in neural networks, and early stopping. These techniques help ensure that the model performs well on unseen data by maintaining a balance between bias and variance.

Summary

A set of techniques used during training to prevent overfitting by adding penalties to the loss function or constraining model complexity.

Key Concepts

Use Cases

Code Example

1
2
from sklearn.linear_model import Ridge
model = Ridge(alpha=1.0)