R : Two ways to train a model

Deepanshu Bhalla Add Comment
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])

Related Posts
Spread the Word!
Share
About Author:
Deepanshu Bhalla

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

Post Comment 0 Response to "R : Two ways to train a model"
Next → ← Prev