What should be height of tree in random forest

random_forest

#1

I am studying about the random forest in which we have to find the tree but I am confused that what should be height of tree is it in middle or in bottom or in the top of tree I want to know which will give us more accurate result and why to select it .


#2

Height of a tree is related to the node size. If your node size is large, the tree will be small since , you wouldn’t be able to split a node with size less than (specified node size). So question you should be asking is how to arrive at the optimal node size to maximize the accuracy from your tree. Split Data into train and cross validation. Then run the algorithm for different node sizes and then see how the algo performs. In general you can randomForest for as small node size as you want.