glmLite | R Documentation |
rpart
A super-stripped down decision tree for when space and performance are critical
glmLite(
x,
y,
weights = NULL,
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"),
save.fitted = FALSE,
...
)
x |
Feature matrix or data.frame. Will be coerced to data.frame for method = "allSubsets", "forwardStepwise", or "backwardStepwise" |
y |
Outcome |
weights |
Float, vector: Case weights |
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: |
save.fitted |
Logical: If TRUE, save fitted values in output. Default = FALSE |
... |
Additional arguments to pass to lincoef |
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.