it uses as.vector(data$ranger_data[[y]]) which is null when it is not specified as one of the type of the engine argument. My suggestion would be is to create another parameter for train_model function or put it in the list outputted by prepare_data for train.
This is aligned with #96 where specifying
xgboost
only as the engine throws an error.I believe this is because in
train_models.R
,it uses
as.vector(data$ranger_data[[y]])
which isnull
when it is not specified as one of the type of theengine
argument. My suggestion would be is to create another parameter fortrain_model
function or put it in the list outputted byprepare_data
for train.