GithubHelp home page GithubHelp logo

dlependorf / recipes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tidymodels/recipes

0.0 0.0 0.0 37.56 MB

A preprocessing engine to generate design matrices

Home Page: https://tidymodels.github.io/recipes/

R 30.63% HTML 69.37%

recipes's Introduction

output
github_document

recipes

Build Status R build status Coverage status CRAN_Status_Badge Downloads lifecycle

Introduction

The recipes package is an alternative method for creating and preprocessing design matrices that can be used for modeling or visualization. From wikipedia:

In statistics, a design matrix (also known as regressor matrix or model matrix) is a matrix of values of explanatory variables of a set of objects, often denoted by X. Each row represents an individual object, with the successive columns corresponding to the variables and their specific values for that object.

While R already has long-standing methods for creating these matrices (e.g. formulas and model.matrix), there are some limitations to what the existing infrastructure can do.

The idea of the recipes package is to define a recipe or blueprint that can be used to sequentially define the encodings and preprocessing of the data (i.e. "feature engineering"). For example, to create a simple recipe containing only an outcome and predictors and have the predictors centered and scaled:

library(recipes)
library(mlbench)
data(Sonar)
sonar_rec <- recipe(Class ~ ., data = Sonar) %>%
  step_center(all_predictors()) %>%
  step_scale(all_predictors())

To install it, use:

install.packages("recipes")

## for development version:
require("devtools")
install_github("tidymodels/recipes")

recipes's People

Contributors

alexpghayes avatar balthasars avatar batpigandme avatar bcjaeger avatar davisvaughan avatar dimagor avatar dlependorf avatar edwinth avatar emilhvitfeldt avatar ewv88 avatar fxdlmatt avatar gadenbuie avatar gdequeiroz avatar goldbergdata avatar holymiracle avatar jakubkovac avatar jameslairdsmith avatar jrnold avatar jyuu avatar karissawhiting avatar klahrich avatar lawwu avatar lionel- avatar lorenzwalthert avatar meztez avatar rudeboybert avatar tareefk avatar terrytangyuan avatar topepo avatar victorsuarezl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.