r-recipes

recipes::step_dummy + caret::train -> Error:Not all variables in the recipe are present

痴心易碎 提交于 2021-02-11 15:21:03
问题 I am getting the following error when using recipes::step_dummy with caret::train (first attempt at combining the two packages): Error: Not all variables in the recipe are present in the supplied training set Not sure what is causing the error nor the best way to debug. Help to train model would be much appreciated. library(caret) library(tidyverse) library(recipes) library(rsample) data("credit_data") ## Split the data into training (75%) and test sets (25%) set.seed(100) train_test_split <-