R/onLoad.R

Defines functions .onLoad

# global reference to shap (will be initialized in .onLoad)
shap_reference <- NULL

.onLoad <- function(libname, pkgname) {
  tryCatch(
  shap_reference <<- reticulate::import("shap", delay_load = TRUE)
  )
}
ModelOriented/shapper documentation built on May 26, 2023, 2:20 a.m.