Description Usage Arguments Value
A combination of stacking (per Kaggle) and the deep forest idea proposed in https://arxiv.org/pdf/1702.08835.pdf with a few additional knobs and levers of my own..
1 2 3 4 5 6 | deepforest(x, y, x_val = NULL, y_val = NULL, nfold = 5, index = NULL,
objective = NULL, eval_func = NULL, nlayer = 5, nmeta = 4,
nmetarep = 1, nclass = NULL, metatype = rep(c("bag", "boost", "dart",
"lin"), length = nmeta * nmetarep), metaparam = NULL, metarandom = FALSE,
colsample_bylayer = 1, colsample_add = FALSE, accumulate = FALSE,
nthread = 2, missing = NA, printby = "fold", ...)
|
x |
Object coercible to a matrix. |
y |
A vector of labels for |
x_val |
Object coercible as matrix used for validation. Defaults to |
y_val |
A vector of labels for |
nfold |
The number of folds to stack on. If |
index |
A list of integers indicating observations belonging to each fold. Random
sampling is used if |
objective |
The objective passed to |
eval_func |
A function used to evaluate each meta model. |
nlayer |
The number of layers to stack. |
nmeta |
The number of meta models to build on each layer. |
nmetarep |
The number of repeated meta models to construct. |
nclass |
An integer indicating the number of classes. |
metatype |
A list of character variables indicating type of meta models to construct.
Currently supports "bag", "boost", "dart" and "lin" for a random forest,
boosted trees, boosted trees with dropout and boosted linear models
respectively, all based on xgboost. If length of |
metaparam |
A list indicating additional parameters for each meta model. The mechanism
used to generate default values and create randomized values are in
|
metarandom |
A logical indicating whether to create randomized miscellaneous parameters. |
colsample_bylayer |
A numeric vector between [0,1] indicating the fraction of features to sample
at each layer. If a single value, then you may use |
colsample_add |
Either a logical or a numeric. If |
accumulate |
A logical indicating if the predictions by meta models from each layer is
accumulated. If |
nthread |
The nthread argument passed to |
missing |
The |
... |
Additional arguments passed to |
A deepforest
object containing all the models constructed and sampling
results for used in prediction on test data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.