Skip to content

Commit

Permalink
limit number of trees in example
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzinskim committed Sep 28, 2023
1 parent 31cec37 commit e5147cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/unify_xgboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' target <- fifa20$target
#' param <- list(objective = "reg:squarederror", max_depth = 3)
#' xgb_model <- xgboost::xgboost(as.matrix(data), params = param, label = target,
#' nrounds = 200, verbose = 0)
#' nrounds = 20, verbose = 0)
#' unified_model <- xgboost.unify(xgb_model, as.matrix(data))
#' shaps <- treeshap(unified_model, data[1:2,])
#' plot_contribution(shaps, obs = 1)
Expand Down
2 changes: 1 addition & 1 deletion man/xgboost.unify.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5147cd

Please sign in to comment.