Survival Parameters for xgboost

as_sgb_params(params)

sgb_params(...)

Arguments

params

a list of tuning parameters for an xgboost model.

...

name-value pairs (e.g., maxdepth = 2) of tuning parameters and tuning parameter values.

Value

a modified list with values for objective and eval_metric

Examples

sgb_params()
#> $objective #> [1] "survival:cox" #> #> $eval_metric #> [1] "cox-nloglik" #>
as_sgb_params(list(max_depth=1))
#> $max_depth #> [1] 1 #> #> $objective #> [1] "survival:cox" #> #> $eval_metric #> [1] "cox-nloglik" #>