ModelOriented / DALEXtra

Extensions for the DALEX package
https://ModelOriented.github.io/DALEXtra/
66 stars 10 forks source link

add load_explainer function #59

Closed hbaniecki closed 2 years ago

hbaniecki commented 3 years ago

See https://github.com/ModelOriented/DALEX/issues/357

prototype:

load_explainer <- function(path) {
  ret <- py_load_object(path, pickle = "pickle")
  class(ret) <- c(class(ret), 'explainer')
  ret
}
maksymiuks commented 2 years ago

Is it still valid?

If so, would exporting this function https://github.com/ModelOriented/DALEXtra/blob/master/R/helper_functions.R#L5-L34 solve the problem?

hbaniecki commented 2 years ago

Or we could do:

#' @export
dalex_load_explainer <- function(path) {
  dalex_load_object(path, "explainer")
}