Due to the way glmnet
is implemented, the regularization alpha
can not be modified after the model is fitted.
predict_glmnet(object, x, s, ...)predict_ridge_regression(object, x, s, ...)
predict_lasso(object, x, s, ...)
Fitted model.
New data to be predicted.
Regularization parameter lambda.
Sent to predict.glmnet
.
A list with a subset of the following elements:
prediction
The response of the modeling problem, i.e. a factor for classification, problems, a numeric for regressions, and a relative risk for survival analyses.
probability
Data frame of predicted class probabilities.
link
Link function values.