What is the difference between hard voting and soft voting in Random Forest classification?

Last updated 5 November 2026

  • Hard voting picks the most common predicted class across trees, ignoring confidence. Soft voting averages trees' class probabilities (leaf class fractions) and takes the argmax.

  • scikit-learn's RandomForestClassifier uses soft voting, which usually gives slightly better accuracy and smoother scores. With pure leaves both methods agree.

  • Forest probabilities are often poorly calibrated, so use CalibratedClassifierCV when true probabilities are needed.

  • https://medium.com/@awanurrahman.cse/understanding-soft-voting-and-hard-voting-a-comparative-analysis-of-ensemble-learning-methods-db0663d2c008
  • https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.VotingClassifier.html
  • https://sklearn.org/stable/modules/ensemble.html
All Random Forests interview questions