What is the difference between hard voting and soft voting in Random Forest classification?
Last updated
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
RandomForestClassifieruses 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
CalibratedClassifierCVwhen true probabilities are needed.