View source: R/checkInputData.R
| checkInputData | R Documentation |
Internal helper function to validate arguments passed to srlars.
Checks types, dimensions, and logical constraints.
checkInputData(
x,
y,
n_models,
tolerance,
max_predictors,
x_preprocess,
y_preprocess,
cor_estimator,
cv_preprocess,
cv_loss,
cv_fit,
cv_folds,
compute_coef,
max_share = NULL,
n_min = NULL
)
x |
Design matrix. |
y |
Response vector. |
n_models |
Number of models in the ensemble. |
tolerance |
Relative improvement tolerance for stopping. |
max_predictors |
Maximum total number of variables to select. |
x_preprocess |
X cleaning method. |
y_preprocess |
y cleaning method. |
cor_estimator |
Correlation method. |
cv_preprocess |
Foldwise or global CV. |
cv_loss |
Arbiter loss function. |
cv_fit |
Arbiter fit function. |
cv_folds |
Number of CV folds. |
compute_coef |
Logical. |
max_share |
Maximum number of sub-models a variable may appear in. NULL skips this check. |
n_min |
Minimum number of variables each sub-model is guaranteed. NULL skips this check. |
NULL. Stops execution with an error message if invalid inputs are detected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.