R : Two ways to train a model


R Data Science: R Programming A-Z: R For Data Science With Real Exercises!

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])

Coursera Data Science

R Tutorials : 75 Free R Tutorials

Get Free Email Updates :
*Please confirm your email address by clicking on the link sent to your Email*

Related Posts:

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

Post a Comment

Next → ← Prev