fit: Fit model

Description Usage

View source: R/fit.R

Description

Fit model.

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
fit(
  data = NULL,
  x = NULL,
  y = NULL,
  col_y = NULL,
  id = NULL,
  col_id = NULL,
  overwrite = TRUE,
  export = TRUE,
  f_import = readr::read_rds,
  f_export = readr::write_rds,
  ...,
  drop = TRUE,
  dir = .get_dir_data(),
  file = "fit",
  ext = "rds",
  path = NULL,
  sep = "_",
  suffix = NULL,
  print_every_n = 10,
  cols_extra = NULL,
  n_param = 10,
  nrounds = 2000,
  booster = "gbtree",
  objective = "reg:squarederror",
  eval_metrics = list("rmse"),
  .params = list(NULL),
  early_stopping_rounds = 10
)

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