View source: R/ResurvcvIndividualData.R
ReSurvCV.default | R Documentation |
This function computes a K fold cross-validation of a pre-specified ReSurv model for a given grid of parameters.
## Default S3 method:
ReSurvCV(
IndividualDataPP,
model,
hparameters_grid,
folds,
random_seed,
continuous_features_scaling_method = "minmax",
print_every_n = 1L,
nrounds = NULL,
early_stopping_rounds = NULL,
epochs = 1,
parallel = FALSE,
ncores = 1,
num_workers = 0,
verbose = FALSE,
verbose.cv = FALSE
)
IndividualDataPP |
|
model |
|
hparameters_grid |
|
folds |
|
random_seed |
|
continuous_features_scaling_method |
|
print_every_n |
|
nrounds |
|
early_stopping_rounds |
|
epochs |
|
parallel |
|
ncores |
|
num_workers |
|
verbose |
|
verbose.cv |
|
Best ReSurv
model fit. The output is different depending on the machine learning approach that is required for cross-validation. A list containing:
out.cv
: data.frame
, total output of the cross-validation (all the input parameters combinations).
out.cv.best.oos
: data.frame
, combination with the best out of sample likelihood.
For XGB the columns in out.cv
and out.cv.best.oos
are the hyperparameters booster
, eta
, max_depth
, subsample
, alpha
, lambda
, min_child_weight
. They also contain the metrics train.lkh
, test.lkh
, and the computational time time
. For NN the columns in out.cv
and out.cv.best.oos
are the hyperparameters num_layers
, optim
, activation
, lr
, xi
, eps
, tie
, batch_size
, early_stopping
, patience
, node
train.lkh test.lkh. They also contain the metrics train.lkh
, test.lkh
, and the computational time time
.
Munir, H., Emil, H., & Gabriele, P. (2023). A machine learning approach based on survival analysis for IBNR frequencies in non-life reserving. arXiv preprint arXiv:2312.14549.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.