Factor/categorical predictors need to be converted to numeric values (e.g., dummy or indicator variables) for this engine. When using the formula method via \code{\link[=fit.model_spec]{fit()}}, parsnip will convert factor columns to indicators.



tidymodels/parsnip documentation built on Feb. 19, 2025, 2:10 a.m.