R : Two ways to train a model

In R, there are two ways to train a model.

Formula Method
rf.mod<- randomForest(churn ~ ., data = churnTrain, importance= TRUE)
Default Method
rf.mod<- randomForest(x = churnTrain[, -20], y = churnTrain[, 20])

About Author:

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has over 8 years of experience in data science. During his tenure, he has worked with global clients in various domains like Banking, Insurance, Telecom and Human Resource.

Related Posts:
0 Response to "R : Two ways to train a model"

Post a Comment

Next → ← Prev
Love this Post? Spread the Word!
Share