erf_cv | R Documentation |
Fits an extremal random forest (ERF) with cross-validation.
erf_cv(
X,
Y,
min.node.size = c(5, 40, 100),
lambda = c(0, 0.001, 0.01),
intermediate_estimator = c("grf", "neural_nets"),
intermediate_quantile = 0.8,
nfolds = 5,
nreps = 3,
seed = NULL
)
X |
Numeric matrix of predictors, where each row corresponds to an observation and each column to a predictor. |
Y |
Numeric vector of responses. |
min.node.size |
Vector with minimum number of observations in each tree
leaf used to fit the similarity weights
(see also |
lambda |
Vector with penalties for the shape parameter used in the weighted likelihood.
Default is |
intermediate_estimator |
A character specifying the estimator used to fit the intermediate threshold. Options available are:
|
intermediate_quantile |
Intermediate quantile
level, used to predict the intermediate threshold.
For further information see \insertCitemerg2020;textualerf.
Default is |
nfolds |
Number of folds in the cross-validation scheme.
Default is |
nreps |
Number of times |
seed |
Random seed to reproduce the fold splits.
Default is |
An object with S3 class "erf_cv
".
It is a named list with the following elements:
scores |
A |
erf |
A fitted " |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.