View source: R/070_Hyperparameters.R
| setup_GLMNET | R Documentation |
Setup hyperparameters for GLMNET training.
setup_GLMNET(
alpha = 1,
family = NULL,
which_lambda_cv = "lambda.1se",
nlambda = 100L,
lambda = NULL,
penalty_factor = NULL,
standardize = TRUE,
intercept = TRUE,
ifw = TRUE
)
alpha |
(Tunable) Numeric [0, 1]: Elastic net mixing parameter. |
family |
Optional Character {"gaussian", "binomial", "poisson", "multinomial", "cox", "mgaussian"}: Family. NULL = set from outcome type. |
which_lambda_cv |
Character {"lambda.1se", "lambda.min"}: Which lambda to use for prediction. |
nlambda |
Integer [1, Inf): Number of lambda values. |
lambda |
Optional Numeric [0, Inf) vector: Lambda values. NULL = determined by cv.glmnet during tuning. |
penalty_factor |
Optional Numeric [0, Inf) vector: Penalty factor for each design-matrix column (factors expanded to indicator columns). NULL uses 1 for every column. |
standardize |
Logical: If TRUE, standardize features. |
intercept |
Logical: If TRUE, include intercept. |
ifw |
(Tunable) Logical: If TRUE, use Inverse Frequency Weighting in classification. |
Get more information from glmnet::glmnet.
GLMNETHyperparameters object.
EDG
glm_hyperparams <- setup_GLMNET(alpha = 1, ifw = TRUE)
glm_hyperparams
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.