liveBook · Manning

Mode

As explained in Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

Majority voting predicts a classification label by selecting the class receiving the most votes from multiple models.

Majority voting predicts a classification label by selecting the class receiving the most votes from multiple models. It pools diverse predictions into one decision, helping reduce variance and produce more reliable results. section 5.1.1 section 5.1.2

Use majority voting when combining models for classification, while weighing the practical trade-offs:

  • Pasting trains models on subsamples drawn without replacement, then combines their classification predictions by majority voting. section 5.1.1
  • Random forests combine decision trees built with bootstrapping and feature sampling; the most frequent class becomes the prediction. section 5.1.2
  • Ensembling can improve reliability and accuracy, but multiple models require more computation and subsampling can exclude important data patterns. section 5.1.1 section 5.1.2

Random-forest classification

For the Airbnb NYC classification problem, a RandomForestClassifier combines 300 trees after categorical one-hot encoding and numeric preprocessing. Each tree votes, and the most common class forms the final prediction. section 5.1.2

Figure 5.4 How random forests arrives at its results by combining the different data partitioning due to its decision trees thanks to majority voting

Shows how different decision-tree partitions combine into a shared classification boundary through majority voting. section 5.1.2

How Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI covers it

How deep it goes
Explains vote-based prediction through pasting and random forests, but stops short of mathematical voting analysis.
Examples
Uses subsampled models, random-forest tree partitions, and an Airbnb NYC classification pipeline as concrete examples.
What it assumes
Assumes classification and model predictions, while illustrating ensemble voting through decision trees and sampled training data.
What you can do after
Apply it via scikit-learn ensemble classifiers and evaluate predictions with cross-validation and accuracy.
How it connects
Connects majority voting with ensemble methods, bagging, pasting, random forests, decision trees, bootstrapping, and feature sampling.

Also explained in

Compare how 8 books explain mode →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI. The section links point to the parts of the book it draws on.