Random Forest Voting Calculator

Combine tree predictions using hard, soft, weighted, threshold, or regression voting while exploring confidence, disagreement, errors, charts, and transparent calculation steps instantly for learning.

Calculation Results

Step-by-Step Calculation


        

1. Prediction and Forest Settings

Separate labels with commas.
%

2. Thresholds and Advanced Classification Options

%
%
%
%

3. Tree Predictions

Tree Predicted class Probabilities Confidence Weight Reliability Actual OOB Abstain
Tree Prediction Weight Variance Actual target OOB Abstain

4. Import, Batch, and Utility Options

Classification columns: tree,class,probabilities,confidence,weight,reliability,actual,oob,abstain.
Use an array of tree objects matching the table fields.
Batch mode uses the selected classification method and current class labels.

Saved Calculation History

TimeModeMethodPredictionConfidence
No saved calculations yet.

Formula Used

Hard voting selects the class receiving the most tree predictions. Weighted voting multiplies each vote by its tree weight. Soft voting averages class probabilities before selecting the largest value.

Hard vote: ŷ = mode(h₁(x), h₂(x), ..., hₜ(x))
Weighted score: Score(c) = Σ wᵢ I(hᵢ(x) = c)
Soft probability: P(c) = (1/T) Σ Pᵢ(c)
Regression mean: ŷ = (1/T) Σ hᵢ(x)
Weighted regression: ŷ = Σ(wᵢhᵢ(x)) / Σwᵢ

How to Use

  1. Select classification or regression mode.
  2. Choose the ensemble voting method.
  3. Enter each tree prediction and optional evidence.
  4. Adjust thresholds, weights, reliability, and tie rules.
  5. Submit the form and inspect every diagnostic.

Example Data

TreeClassProbabilitiesWeight
Tree 1Positive{"Negative":0.20,"Positive":0.80}1.00
Tree 2Negative{"Negative":0.60,"Positive":0.40}0.80
Tree 3Positive{"Negative":0.30,"Positive":0.70}1.20

Frequently Asked Questions

What is hard voting?

Hard voting counts predicted labels. The most frequent label becomes the forest prediction.

What is soft voting?

Soft voting averages class probabilities. It uses more information than labels alone.

When should weights be used?

Weights help when some trees are more reliable. Larger weights increase their influence.

How are ties resolved?

Ties use your selected rule. Probability, weight, order, priority, or randomness can decide.

What does vote entropy show?

Entropy measures uncertainty across class votes. Higher entropy suggests stronger disagreement.

What is consensus ratio?

Consensus is the winning vote share. Higher values indicate broader tree agreement.

Can trees abstain?

Yes. Abstaining trees are excluded from the active ensemble calculation.

What is OOB voting?

OOB voting uses trees where a record was out-of-bag. It estimates generalisation behaviour.

How does regression voting work?

Regression forests average numeric tree predictions. Weighted averaging favours selected trees.

Related Calculators

Decision Tree Entropy CalculatorInformation Gain CalculatorGini Impurity CalculatorDecision Tree Split CalculatorGradient Boosting Prediction CalculatorAdaBoost Weight CalculatorXGBoost Gain CalculatorBagging Sample CalculatorDecision Tree Splitting QuizGini Impurity Quiz

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.