October 2017
Beginner to intermediate
572 pages
26h 1m
English
Apart from the randomForest package, the party package also provides an implementation of random forest. In the following steps, we illustrate how to use the cforest function within the party package to perform classifications:
> install.packages("party")
> library(party)
> churn.cforest = cforest(churn ~ ., data = trainset, con- trols=cforest_unbiased(ntree=1000, mtry=5)) > churn.cforest Output Random Forest using Conditional Inference Trees Number of trees: 1000 Response: churn Inputs: international_plan, voice_mail_plan, num- ber_vmail_messages, total_day_minutes, total_day_calls, to- tal_day_charge, ...
Read now
Unlock full access