Description Usage Arguments Value
View source: R/transformation_functions.R
get function that encodes away less common values in a feature saves you from those errors on missing factor levels in test set
1 | getCategTransform(col, fit_dt, threshold = 0, default_value = "other")
|
col: |
transformation function will transform this column |
fit_dt: |
use data in fit_dt to calculate less common feature values |
threshold: |
retain only those values that occur more than this many times in fit_dt |
list(col, fun) where fun is the transformation function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.