I'm trying to fit a model using C5.0. My code is the following:
set.seed(123) library(C50) library(caret) control <- trainControl(method = "repeatedcv", number = 10, repeats = 3) fit_train <- train(vowel ~ F1 + F2 + F3 + duration, data = train, method = "C5.0", trControl = control) plot(fit_train)
The problem is that I want to plot the tree, but instead of that, I get a plot of boosting iterations when I use the
plot() function (see the figure below).
Any suggestions on how to plot the tree?