Skip to content
Rahul PS

Ensemble Methods

Machine Learning

Sample digits from the MNIST dataset

This project investigates the power of ensemble machine learning models on the MNIST dataset. The individual components are:

Two kinds of ensemble are constructed.

Ensemble 1 — Soft voting classifier

Soft voting classifier diagram

This combines the three classifiers and uses a voting mechanism to determine the class the image belongs to.

Ensemble 2 — Stacking classifier

Stacking classifier diagram

The stacking classifier uses a two-tier architecture. In the first stage, the outputs of the three classifiers are stacked and fed into a random forest classifier. This mimics a feature-extraction stage followed by a classifier, which is common in deep neural networks.

Results

Individual models

ModelTest set accuracy (%)
Random Forests96.87
Extra Trees97.07
Support Vector Machines96.46

Ensemble models

ModelTest set accuracy (%)
Soft Voting Classifier97.42
Stacking Classifier97.08