deploy.tile: Assign Tiles to Live (Deployment) Data

Description Usage Arguments Details

Description

This function assigns tiles to the live data by using the tilings from the train data.

Usage

1
deploy.tile(df_deploy = ds, df_train = ds1, prob = "p_", tile_name = "p_Tile", model = NULL, model_var = "X1", n = 10)

Arguments

df_deploy

Live (Deployment) data.

df_train

Train data.

prob

The model output variable; this could be the Propensity variable and is used to rank order and create the tiles.

tile_name

The desired name for the tile variable; "p_Tile" is a good option.

model

The name of the model in focus. If not NULL, then the prob argument becomes irrelevant and predictions are made directly through this function.

model_var

If model prediction is of type "prob", then the name of the required predicted variable. By default this is "X1" which indicates the probability of the event.

n

The number of desired tiles.

Details

Note that prob is assumed to be variables in a dataset, and needs to be inputted in quotes, such that y = "target".

This function automatically assign objects to the global environment.


Ehsan-F/R-Mixtape documentation built on June 24, 2020, 12:22 a.m.