Skip to content

Ensemble Methods

Ensemble methods combine multiple machine learning models to improve overall performance and robustness. By aggregating the predictions of several models, ensemble methods can reduce variance, bias, and improve generalization.

Bagging

Generate N new training sets by random sampling with replacement. Each resampled model can be trained independently and in parallel.

  • Better at reducing overfitting.

Boosting

Assign weights to each training instance. Train models sequentially, with each model focusing on the instances that were misclassified by previous models. Combine the predictions of all models to make a final prediction.

  • Better accuracy

Other

Stacking

Often uses heterogeneous models (different algorithms). Train multiple base models on the training data, then use their predictions as input features for a meta-model that makes the final prediction.

Hybrid

Combines the predictions of different models using a weighted average based on each model's performance.