Nothing
#' Print method for shapr objects
#'
#' @param x A shapr object
#' @param digits Scalar Integer.
#' Number of digits to display to the console
#' @param ... Unused
#' @return No return value (but prints the shapley values to the console)
#' @export
print.shapr <- function(x, digits = 4, ...) {
shap <- copy(x$shapley_values_est)
shap_names <- x$internal$parameters$shap_names
cols <- c("none", shap_names)
shap[, (cols) := lapply(.SD, round, digits = digits + 2), .SDcols = cols]
print(shap, digits = digits)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.