I wonder if something is going on with my syntax or with caret
here? I'm using the caret
package in R Version 4.2.3 to build a boosted tree model using C5.0
. I'm consistently getting the same type of warnings:
I originally thought that this was due to something having to do with my data, but I tried using the sample data and code in the vignette with caret
and ran into the same warnings.
library(modeldata)
library(caret)
library(C50)
library(tidyverse)
data(credit_data)
vars <- c("Home", "Seniority")
set.seed(2411)
in_train <- sample(1:nrow(credit_data), size = 3000)
train_data <- credit_data[ in_train,] %>%
filter(!is.na(Seniority)) %>%
filter(!is.na(Home)) %>%
filter(!is.na(Status))
#Using C50
C5.0(Status ~ Home + Seniority, data = train_data)
#Using Caret
train(Status ~ Home + Seniority, data = train_data, method = "C5.0")
The train function in caret
throws the warnings. The C5.0 function from C50
does not. Is there something wrong with caret
or my syntax here?