Category Artificial Intelligence

Bagging in Python from Scratch

A single decision tree trained on your full dataset is highly sensitive to the training data: change a few rows and the tree changes completely. Bagging — Bootstrap Aggregating — fixes this by training many trees on independently sampled versions…

Why Boosting Often Resists Overfitting

Training a 1,000-round AdaBoost model to zero training error sounds like a recipe for catastrophic overfitting. Classical statistical learning theory — which ties generalisation error to model complexity — would predict a massive generalisation gap. But empirically, AdaBoost trained to…

Multi-Label Boosting with Python Examples

Most classification problems ask “which one class does this example belong to?” Multi-label classification asks “which subset of labels does this example belong to?” — a fundamentally different task. A news article can be tagged sports, finance, and politics simultaneously.…

Multi-Class Boosting in Python

Binary boosting — AdaBoost, gradient boosting, XGBoost — is well understood, but most real classification tasks involve more than two classes: digit recognition, product categorisation, disease type diagnosis. Extending boosting to K > 2 classes requires a different loss function…