R/print_explainer.R

Defines functions print.surv_explainer

Documented in print.surv_explainer

#' Print Survival Explainer Summary
#'
#' @param x a model survival expaliner created with the `explain()` function
#' @param ... further arguments passed to or from other methods
#'
#' @export

print.surv_explainer <- function(x, ...) {
  cat("Model label: ", x$label, "\n")
  cat("Model class: ", paste(x$class, collapse = ","), "\n")
  cat("Data head  :\n")
  print(head(x$data,2))
  return(invisible(NULL))
}

Try the survxai package in your browser

Any scripts or data that you put into this service are public.

survxai documentation built on Aug. 28, 2020, 5:07 p.m.