View source: R/supervised-regularization.R
| tl_fit_elastic_net | R Documentation |
Fit an Elastic Net regression model
tl_fit_elastic_net(
data,
formula,
is_classification = FALSE,
alpha = 0.5,
lambda = NULL,
cv_folds = 5,
...
)
data |
A data frame containing the training data |
formula |
A formula specifying the model |
is_classification |
Logical indicating if this is a classification problem |
alpha |
Mixing parameter (default: 0.5 for Elastic Net) |
lambda |
Regularization parameter (if NULL, uses cross-validation to select) |
cv_folds |
Number of folds for cross-validation (default: 5) |
... |
Additional arguments to pass to glmnet() |
A fitted Elastic Net regression model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.