Skip to content

Pipeable steps for feature engineering and data preprocessing to prepare for modeling

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

tidymodels/recipes

Folders and files

NameName
Last commit message
Last commit date
Aug 5, 2024
Feb 20, 2025
Apr 4, 2025
Feb 18, 2025
Mar 5, 2025
Apr 4, 2025
Nov 23, 2019
Mar 25, 2025
Apr 4, 2025
Mar 28, 2025
Mar 28, 2025
Apr 19, 2022
Feb 20, 2023
Mar 28, 2025
Mar 6, 2023
Mar 6, 2023
Mar 5, 2025
Apr 4, 2025
Jul 5, 2024
Jul 5, 2024
Mar 28, 2025
May 15, 2020
Jul 15, 2017
Mar 18, 2025
Sep 30, 2022

Repository files navigation

recipes

R-CMD-check Codecov test coverage CRAN_Status_Badge Downloads lifecycle

Introduction

With recipes, you can use dplyr-like pipeable sequences of feature engineering steps to get your data ready for modeling. For example, to create a recipe containing an outcome plus two numeric predictors and then center and scale (“normalize”) the predictors:

library(recipes)
data(ad_data, package = "modeldata")

ad_rec <- recipe(Class ~ tau + VEGF, data = ad_data) %>%
  step_normalize(all_numeric_predictors())

ad_rec

More information on recipes can be found at the Get Started page of tidymodels.org.

You may consider recipes as an alternative method for creating and preprocessing design matrices (also known as model matrices) that can be used for modeling or visualization. While R already has long-standing methods for creating such matrices (e.g. formulas and model.matrix), there are some limitations to what the existing infrastructure can do.

Installation

There are several ways to install recipes:

# The easiest way to get recipes is to install all of tidymodels:
install.packages("tidymodels")

# Alternatively, install just recipes:
install.packages("recipes")

# Or the development version from GitHub:
# install.packages("pak")
pak::pak("tidymodels/recipes")

Contributing

About

Pipeable steps for feature engineering and data preprocessing to prepare for modeling

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages