powered by
generates the code to create the decision trees model.
dt_model( data = "datos.aprendizaje", variable.pred = NULL, model.var = "modelo.dt", minsplit = 20, maxdepth = 15 )
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 minsplit parameter of the model.
the maxdepth parameter of the model.
rpart
# NOT RUN { library(rpart) x <- dt_model('iris', 'Petal.Length') exe(x) print(modelo.dt) # }
Run the code above in your browser using DataLab