the random forest classifier uses a majority vote to classify test. This may not be optimal setup. For example, if we have 24 trees 10 of which are predicting 1, 7 are predicting 4 and 7 are predicting 5. In this scenario, it may be better to select 4 or 5.