Skip to content

recipes 0.1.8

Latest
Compare
Choose a tag to compare
@topepo topepo released this 20 Feb 19:37
· 2 commits to main since this release
26cc857

Breaking Changes

  • The imputation steps do not change the data type being imputed now. Previously, if the data were integer, the data would be changed to numeric (for some step types). The change is breaking since the underlying data of imputed values are now saved as a list instead of a vector (for some step types).

  • The data sets were moved to the new modeldata package.

  • step_num2factor() was rewritten due to a bug that ignored the user-supplied levels (#425). The results of the transform argument are now required to be a function and levels must now be supplied.

Other Changes

  • Using a minus in the formula to recipes() is no longer allowed (it didn't remove variables anyway). step_rm() or update_role() can be used instead.

  • When using a selector that returns no columns, juice() and bake() will now return a tibble with as many rows as the original template data or the new_data respectively. This is more consistent with how selectors work in dplyr (#411).

  • Code was added to explicitly register tunable methods when recipes is loaded. This is required because of changes occurring in R 4.0.

  • check_class() checks if a variable is of the designated class. Class is either learned from the train set or provided in the check. (contributed by Edwin Thoen)

  • step_normalize() and step_scale() gained a factor argument with values of 1 or 2 that can scale the standard deviations used to transform the data. (#380)

  • bake() now produces a tibble with columns in the same order as juice() (#365)