Wrapper for SuperLearner for objects of class hal9001
SL.hal9001( Y, X, newX = NULL, max_degree = 3, fit_type = c("glmnet", "lassi"), n_folds = 10, use_min = TRUE, family = stats::gaussian(), obsWeights = rep(1, length(Y)), ... )
| Y | A |
|---|---|
| X | A |
| newX | A matrix of new observations on which to obtain predictions. The
default of |
| max_degree | The highest order of interaction terms for which the basis
functions ought to be generated. |
| fit_type | The specific routine to be called when fitting the Lasso
regression via cross-validation. Choosing |
| n_folds | Integer for the number of folds to be used when splitting the data for cross-validation. This defaults to 10 as this is the convention for V-fold cross-validation. |
| use_min | Determines which lambda is selected from |
| family | Not used by the function directly, but meant to ensure
compatibility with |
| obsWeights | Not used by the function directly, but meant to ensure
compatibility with |
| ... | Placeholder (ignored). |
An object of class SL.hal9001 with a fitted hal9001
object and corresponding predictions based on the input data.