apply_dummies {shapr} | R Documentation |
Apply dummy variables - this is an internal function intended only to be used in predict_model.xgb.Booster()
Description
Apply dummy variables - this is an internal function intended only to be used in predict_model.xgb.Booster()
Usage
apply_dummies(feature_list, testdata)
Arguments
feature_list |
List. The |
testdata |
data.table or data.frame. New data that has the same
feature names, types, and levels as |
Value
A data.table with all features but where the factors in testdata
are
one-hot encoded variables as specified in feature_list
Author(s)
Annabelle Redelmeier, Martin Jullum
[Package shapr version 0.2.2 Index]