Regularisation is a technique used in machine learning to prevent overfitting by adding a penalty to the loss function. This encourages the model to maintain simpler weights and improves its generalization on unseen data. Common methods include L1 and L2 regularisation, where L1 can lead to sparse models while L2 tends to distribute weights more evenly.
By balancing the fit of the model to training data and its complexity, regularisation helps achieve a better trade-off between bias and variance.