Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to extract the best decision tree from a random forest in R

$
0
0

@data_hacks wrote:

Hello,

Random forests give greater accuracy when compared with decision trees,but are not interpretable.
So I understand that there are ways to extract the best tree from the forest,so that we can get it's rules.
How do I do this in R??
I have used the below code:

But as we can see there is an error.
Can someone please help me with this??

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles