{"id":711,"date":"2018-01-22T20:26:58","date_gmt":"2018-01-22T20:26:58","guid":{"rendered":"http:\/\/www.codeastar.com\/?p=711"},"modified":"2018-04-17T03:08:43","modified_gmt":"2018-04-17T03:08:43","slug":"random-random-forest-tutorial","status":"publish","type":"post","link":"https:\/\/www.codeastar.com\/random-random-forest-tutorial\/","title":{"rendered":"A Beginner Random Random Forest Tutorial"},"content":{"rendered":"
When I have a data project in mind and have no idea on where to start modeling, I will always use the Random Forest model. It is not because of its catchy name and the fact that I always misspell it as Rain Forest<\/span>, it is quick, convenient, easy to understand and, it provides decent results. Isn’t it cool? Yes, it is! So we are going to discuss more Rain<\/span> Random Forest details in this post.<\/p>\n <\/p>\n First thing first, from the words of Random Forest, we know that this model is about a lot of trees (so is rain forest, that is why I keep linking rain forest as random forest…). And the “tree” in the Random Forest model is actually a decision tree. Let’s pick our Titanic Survivors<\/a> project as an example, a decision tree should look like:<\/p>\n <\/p>\n The advantage of using decision tree is its simplicity, we can observe the results graphically without\u00a0having a statistics background. It is also very fast to build and test in development environment.<\/p>\n Now we have a tree, then what’s next? We can’t call a place “forest” with just one tree. So the Random Forest model is a model that consists of many decision trees. You may hear “all men are created equal<\/em><\/a>“, but in Random Forest,<\/p>\n The decision trees in a Random Forest model are created randomly. The model splits a node among a random subset of features, then creates certain number of trees (depending on the model parameter, the default number of trees in sklearn<\/a> Random Forest library is 10).<\/p>\n <\/p>\n The rationales behind this setting are:<\/p>\nWhat is Random Forest model?<\/h3>\n
All trees are created unequal<\/h3>\n