do_predict: Make predictions

Description Usage

View source: R/do_predict.R

Description

Make predictions and compute SHAP values for new data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
do_predict(
  data = NULL,
  fit = NULL,
  path_fit = NULL,
  x = NULL,
  cols_x = NULL,
  y = NULL,
  col_y = NULL,
  id = NULL,
  col_id = NULL,
  f_import = arrow::read_parquet,
  f_export = arrow::write_parquet,
  augment = TRUE,
  do = TRUE,
  overwrite = TRUE,
  export = TRUE,
  ...,
  dir = .get_dir_data(),
  file = NULL,
  ext = "parquet",
  sep = "_",
  suffix = NULL,
  use_y = FALSE,
  .do = list(preds = NULL, shap = NULL),
  .f_import = list(preds = NULL, shap = NULL),
  .f_export = list(preds = NULL, shap = NULL),
  .export = list(preds = NULL, shap = NULL),
  .overwrite = list(preds = NULL, shap = NULL),
  .dir = list(preds = NULL, shap = NULL),
  .file = list(preds = "preds", shap = "shap"),
  .ext = list(preds = NULL, shap = NULL),
  .path = list(preds = NULL, shap = NULL),
  objective = NULL,
  cols_extra = NULL,
  f_trans = NULL
)

tonyelhabr/xgbh documentation built on Dec. 23, 2021, 11:59 a.m.