step_demand_cate: Create Demand Categorization

View source: R/demand_cate.R

step_demand_cateR Documentation

Create Demand Categorization

Description

step_demand_cate creates a specification of a recipe step that will creates demand categorization based on SBC method.

Usage

step_demand_cate(
  recipe,
  ...,
  role = "predictor",
  trained = FALSE,
  demand_cate_table = NULL,
  skip = FALSE,
  id = recipes::rand_id("demand_cate")
)

Arguments

recipe

A recipe object. The step will be added to the sequence of operations for this recipe.

...

One or more selector functions to choose variables for this step. See selections() for more details.

role

Not used by this step since no new variables are created.

trained

A logical to indicate if the quantities for preprocessing have been estimated.

demand_cate_table

Demand categorization table. This is NULL until computed by prep().

skip

A logical. Should the step be skipped when the recipe is baked by bake()? While all operations are baked when prep() is run, some operations may not be able to be conducted on new data (e.g. processing the outcome variable(s)). Care should be taken when using skip = TRUE as it may affect the computations for subsequent operations.

id

A character string that is unique to this step to identify it.


gouthaman87/av-gt-food_demand_forecast documentation built on Jan. 3, 2023, 12:11 p.m.