Decision TreesClassificationscikit-learnPython
Internet Advertisements — Decision Trees
Classifying images as adverts or not, across 1,558 variables.
- Role
- Learning project
- When
- August 2026
- Tools
- Python, pandas, scikit-learn, Jupyter Notebook
Description
Practice with decision trees using the Internet Advertisements dataset from the UCI Machine Learning Repository — deciding whether an image on a web page is an advertisement.
The dataset is deliberately awkward: 3,279 observations described by 1,558 explanatory variables, and heavily imbalanced with 459 advertisements against 2,820 non-advertisements. That imbalance is the point — it is what makes the naive approach look good and be wrong.
Dataset
- 3,279 observations
- 1,558 explanatory variables
- 459 advertisements, 2,820 non-advertisements