"cv.relaxnet"
or "cv.alpha.relaxnet"
object. By default, predictions are made at those values of the tuning parameters which "won" the cross-validation.
"predict"(object, newx, which.model = object$which.model.min, s = object$overall.lambda.min, type = c("link", "response", "coefficients", "nonzero", "class"), exact = FALSE, ...)
"predict"(object, newx, alpha.val = object$which.alpha.min, type = c("link", "response", "coefficients", "nonzero", "class"), ...)
x
at which predictions are to be made. Must be a matrix; can be sparse as in Matrix
package. This argument is not used for type=c("coefficients","nonzero")
"main"
indicates the main glmnet model, while an integer indicates one of the relaxed models. Default for both functions is to use the submodel which "won" the cross-validation.
lambda
at which predictions are required. Default for both functions is to use that value which "won" the cross-validation.
link[glmnet]{predict.glmnet}
.
FALSE
, is supported. See link[glmnet]{predict.glmnet}
.
relaxnet
, cv.relaxnet
, cv.alpha.relaxnet
, predict.relaxnet
, predict.glmnet