From a57371ef7c58acefe4bc794a23089a90734cc1a1 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Thu, 10 Aug 2023 02:38:14 +0800 Subject: [PATCH] Fix links in R doc. (#9450) --- R-package/R/xgb.plot.shap.R | 4 ++-- R-package/man/xgb.plot.shap.summary.Rd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R-package/R/xgb.plot.shap.R b/R-package/R/xgb.plot.shap.R index 581f61dba..9efcb66ec 100644 --- a/R-package/R/xgb.plot.shap.R +++ b/R-package/R/xgb.plot.shap.R @@ -193,7 +193,7 @@ xgb.plot.shap <- function(data, shap_contrib = NULL, features = NULL, top_n = 1, #' hence allows us to see which features have a negative / positive contribution #' on the model prediction, and whether the contribution is different for larger #' or smaller values of the feature. We effectively try to replicate the -#' \code{summary_plot} function from https://github.com/slundberg/shap. +#' \code{summary_plot} function from https://github.com/shap/shap. #' #' @inheritParams xgb.plot.shap #' @@ -202,7 +202,7 @@ xgb.plot.shap <- function(data, shap_contrib = NULL, features = NULL, top_n = 1, #' #' @examples # See \code{\link{xgb.plot.shap}}. #' @seealso \code{\link{xgb.plot.shap}}, \code{\link{xgb.ggplot.shap.summary}}, -#' \url{https://github.com/slundberg/shap} +#' \url{https://github.com/shap/shap} xgb.plot.shap.summary <- function(data, shap_contrib = NULL, features = NULL, top_n = 10, model = NULL, trees = NULL, target_class = NULL, approxcontrib = FALSE, subsample = NULL) { # Only ggplot implementation is available. diff --git a/R-package/man/xgb.plot.shap.summary.Rd b/R-package/man/xgb.plot.shap.summary.Rd index f757fd740..3ff8af21c 100644 --- a/R-package/man/xgb.plot.shap.summary.Rd +++ b/R-package/man/xgb.plot.shap.summary.Rd @@ -67,12 +67,12 @@ Each point (observation) is coloured based on its feature value. The plot hence allows us to see which features have a negative / positive contribution on the model prediction, and whether the contribution is different for larger or smaller values of the feature. We effectively try to replicate the -\code{summary_plot} function from https://github.com/slundberg/shap. +\code{summary_plot} function from https://github.com/shap/shap. } \examples{ # See \code{\link{xgb.plot.shap}}. } \seealso{ \code{\link{xgb.plot.shap}}, \code{\link{xgb.ggplot.shap.summary}}, - \url{https://github.com/slundberg/shap} + \url{https://github.com/shap/shap} }