[R] R-interface for SHAP interactions (#3636)

* add R-interface for SHAP interactions

* update docs for new roxygen version
This commit is contained in:
Vadim Khotilovich
2018-08-30 19:06:21 -05:00
committed by GitHub
parent 10c31ab2cb
commit 5b662cbe1c
10 changed files with 194 additions and 38 deletions

View File

@@ -44,8 +44,8 @@ test <- agaricus.test
bst <- xgboost(data = train$data, label = train$label, max_depth = 2,
eta = 1, nthread = 2, nrounds = 2, objective = "binary:logistic")
# save the model in file 'xgb.model.dump'
dump.path = file.path(tempdir(), 'model.dump')
xgb.dump(bst, dump.path, with_stats = TRUE)
dump_path = file.path(tempdir(), 'model.dump')
xgb.dump(bst, dump_path, with_stats = TRUE)
# print the model without saving it to a file
print(xgb.dump(bst, with_stats = TRUE))