| xgb.sur | R Documentation |
This function allows you to fit survival data with a xgb model.
xgb.sur(
datax,
datay,
method = c("defaut", "pl", "C"),
nfolds = 5,
nround = NULL,
lambda = NULL,
alpha = NULL,
eta = NULL,
early_stopping_rounds = NULL
)
datax |
X data set |
datay |
Y data set |
method |
fitting method |
nfolds |
number of folds |
nround |
number of rounds |
lambda |
l1 parameter |
alpha |
l2 parameter |
eta |
learning rate |
early_stopping_rounds |
force a stopping round |
a fitted xgb model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.