apply_dummies | R Documentation |
Apply dummy variables - this is an internal function intended only to be used in predict_model.xgb.Booster()
apply_dummies(feature_list, testdata)
feature_list |
List. The |
testdata |
data.table or data.frame. New data that has the same
feature names, types, and levels as |
A data.table with all features but where the factors in testdata
are
one-hot encoded variables as specified in feature_list
Annabelle Redelmeier, Martin Jullum
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.