1,099 views
1 1 vote
I’ve heard that it’s hard to visualize the output of  random forest models with large trees/forest but I’m finding it hard to understand what the use case for the model is, if you can’t visualize the outputs? How do you use the predictions then? Is there a way to visualize this?
0% Accept Rate Accepted 0 answers out of 3 questions

1 Answer

0 0 votes

The visualization of a Random Forest especially when you have a lot of features could be a challenge. It is similar to visualizing a set of data points when we have many features. One of the ways is just selecting the most important features by feature selection methods such as PCA and visualize a smaller tree such as the following figure with that smaller set of features, like the following which is taken from this article (you can find the code there).Otherwise, you will end of with a very large tree which does not help anyone, especially if you want to report to the manager or customer. But, when you are going to build the model and deploy, it is better to use it if it gives you better scoring regarding the metrics you choose, and explain the stakeholder the tree looks like the following figure, but the most important features we are deciding on is similar to the tree you see in the previous figure.

Related questions

1 1 vote
1 1 answer
2.7k
2.7k views
engy.abdelazeez asked Apr 3, 2019
2,683 views
I preprocessed the data, normalized the numerical features, and did one hot encoding for the categorical ones. I end up with a model with R^2=0.7 and RMSE which is 15% of...
1 1 vote
1 1 answer
779
779 views
Harsh Grover asked May 16, 2019
779 views
Make a scatter plot where the x-axis is the height of the citizens and the y-axis is the weight of the citizens. The color of the points need to be different for males an...
0 0 votes
0 0 answers
1.3k
1.3k views
Nescafeadjust asked Jun 8, 2022
1,283 views
How do I accurately compare between the number of something a survey measure from my employees each year with a varying umber of survey engagement and employee size?If I ...
1 1 vote
0 0 answers
1.1k
1.1k views
Gwanza asked Jan 21, 2022
1,077 views
I want to build a dynamic pricing model which means if product is too expansive for a client and there is a risk that we might loose a client we lower the price for them ...