target_encoder: target_encoder

Description Usage Arguments

View source: R/target_encoder.R

Description

A wrapper for .target_encode that makes target encoding a large number of columns easy

Usage

1
2
target_encoder(train_df, test_df = NULL, y, x, w = NULL, verbose = FALSE,
  ...)

Arguments

train_df

A data.frame (or coercible object) that contains the training set columns to be encoded

test_df

A data.frame (or coercible object) that contains the test set columns to be encoded

y

A string containing the name of the target column

x

A string containing the names of the columns to be processed

w

A string containing the name of the weight column. Defaults to NULL.

verbose

A logical indicating whether to print run time progress messages or not.

...

Further arguments to be passed to .target_encode


gm209/gmtools documentation built on May 22, 2019, 2:39 p.m.