dot-target_encode: .target_encode

Description Usage Arguments

Description

A worker function that does the target encoding of a column

Usage

1
2
.target_encode(trn_x, tst_x, trn_y, trn_w = NULL, min_samples_leaf = 1,
  smoothing = 1, noise_level = 0)

Arguments

trn_x

A vector that contains the original x values for the train data

tst_x

A vector that contains the x values for the test data

trn_y

A vector that contains the train set actuals

trn_w

A vector that contains row level weights. Defaults to NULL

min_samples_leaf

Whats the smallest amount of weight that's deemed to be credible?

smoothing

A parameter that controls the aggressiveness of the smoothing

noise_level

How much noise should be injected into the results?


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