Improvements
-
Improved error message for misspelled argument in step functions. (#1318)
-
recipe()
can now take data.frames with list-columns or sf data.frames as input todata
. (#1283) -
recipe()
will now show better error when columns are misspelled in formula (#1283). -
add_role()
now errors if a column would simultaneously have roles"outcome"
and"predictor"
. (#935) -
prep()
will now error if the ptype of the data doesn't match which was used to define the recipe. (#793) -
Added more documentation in
?selections
about howtidyselect::everything()
works in recipes. (#1259) -
New
extract_fit_time()
method has been added that returns the time it took to train the recipe. (#1071) -
step_spline_b()
,step_spline_convex()
,step_spline_monotone()
, andstep_spline_nonnegative()
now throws informative errors if thedegree
,deg_free
, andcomplete_set
arguments causes an error. (#1170) -
step_mutate()
gained.pkgs
argument to specify what packages need to be loaded for step to work. (#1282) -
step_interact()
now gives better error ifterms
isn't a formula. (#1299) -
The
prefix
argument ofstep_dummy_multi_choice()
is now properly documented. (#1298) -
Significant speedup in
step_dummy()
when applied to many columns. (#1305) -
step_dummy()
now gives an informative error on attempt to generate too many columns to fit in memory. (#828) -
step_dummy()
andstep_unknown()
now throw more informative warnings for unseen levels. (#450) -
step_dummy()
now throws more informative warnings forNA
values. (#450)
Bug Fixes
-
NA
levels in factors aren't dropped when passed torecipe()
. (#1291) -
recipe()
no longer crashes when given long formula expression (#1283). -
Fixed bug in
step_ns()
andstep_bs()
whereknots
field inoptions
argument wasn't correctly used. (#1297) -
Bug fixed in
step_interact()
where long formulas were used. (#1231, #1289) -
Fixed documentation mistake where default value of
keep_original_cols
argument were wrong. (#1314)
Developer
-
Developer helper function
recipes_ptype()
has been added, returning expected input data forprep()
andbake()
for a given recipe object. (#1329) -
Developer helper function
recipes_ptype_validate()
has been added, to validate new data is compatible with recipe ptype. (#793) -
Developer helper functions
recipes_names_predictors()
andrecipes_names_outcomes()
have been added to aid variable selection in steps. (#1026)