setup.lincoef | R Documentation |
Set lincoef parameters
setup.lincoef(
method = c("glmnet", "cv.glmnet", "lm.ridge", "allSubsets", "forwardStepwise",
"backwardStepwise", "glm", "sgd", "solve"),
alpha = 0,
lambda = 0.01,
lambda.seq = NULL,
cv.glmnet.nfolds = 5,
which.cv.glmnet.lambda = c("lambda.min", "lambda.1se"),
nbest = 1,
nvmax = 8,
sgd.model = "glm",
sgd.model.control = list(lambda1 = 0, lambda2 = 0),
sgd.control = list(method = "ai-sgd")
)
method |
Character: Method to use:
|
alpha |
Float: |
lambda |
Float: The lambda value for |
lambda.seq |
Float, vector: lambda sequence for |
cv.glmnet.nfolds |
Integer: Number of folds for |
which.cv.glmnet.lambda |
Character: Whitch lambda to pick from cv.glmnet: "lambda.min": Lambda that gives minimum cross-validated error; |
nbest |
Integer: For |
nvmax |
Integer: For |
sgd.model |
Character: Model to use for |
sgd.model.control |
List: |
sgd.control |
List: |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.