powered by
generates the code to create the random forest model.
rf_model( data = "datos.aprendizaje", variable.pred = NULL, model.var = "modelo.rf", ntree = 500, mtry = 1 )
the name of the learning data.
the name of the variable to be predicted.
the name of the variable that stores the resulting model.
the ntree parameter of the model.
the mtry parameter of the model.
randomForest
# NOT RUN { library(randomForest) x <- rf_model('iris', 'Petal.Length') exe(x) print(modelo.rf) # }
Run the code above in your browser using DataLab