Skip to content

recipes 0.1.17

Compare
Choose a tag to compare
@EmilHvitfeldt EmilHvitfeldt released this 29 Mar 03:14
· 1151 commits to main since this release
531bc3c

New Steps

  • Added new step_harmonic() (#702).

  • Added a new step called step_dummy_multi_choice(), which will take multiple nominal variables and produces shared dummy variables. (#716)

Deprecation News

  • The deprecation for step_upsample() and step_downsample() has been escalated from a deprecation warning to a deprecation error; these functions are available in the themis package.

  • Escalate deprecation for old versions of imputation steps (such as step_bagimpute()) from a soft deprecation to a regular deprecation; these imputation steps have new names like step_impute_bag() (#753).

  • step_kpca() was un-deprecated and gained the keep_original_cols argument.

  • The deprecation of the preserve argument to step_pls() and step_dummy() was escalated from a soft deprecation to regular deprecation.

  • The deprecation of the options argument to step_nzv() was escalated to a deprecation error.

Bug Fixes

  • Fix imputation steps for new data that is all NA, and generate a warning for recipes created under previous versions that cannot be imputed with this fix (#719).

  • A bug was fixed where imputed values via bagged trees would have the wrong levels.

Improvements and Other Changes

  • The computations for the Yeo-Johnson transformation were made more efficient (#782).

  • New recipes_eval_select() which is a developer tool that is useful for creating new recipes steps. It powers the tidyselect semantics that are specific to recipes and supports the modern tidyselect API introduced in tidyselect 1.0.0. Additionally, the older terms_select() has been deprecated in favor of this new helper (#739).

  • Speed-up/simplification to step_spatialsign()

  • When only the terms attributes are desired from model.frame use the first row of data to improve speed and memory use (#726).

  • Use Haversine formula for latitude-longitude pairs in step_geodist() (#725).

  • Reorganize documentation for all recipe step tidy methods (#701).

  • Generate warning when user attempts a Box-Cox transformation of non-positive data (@liamblake, #713).

  • step_logit() gained an offset argument for cases where the input is either zero or one (#784)

  • The tidy() methods for objects from check_new_values(), check_class() and step_nnmf() are now exported.