Learn R Programming

tidylearn (version 0.1.0)

tl_predict_regularized: Predict using a regularized regression model

Description

Predict using a regularized regression model

Usage

tl_predict_regularized(model, new_data, type = "response", lambda = "1se", ...)

Value

Predictions

Arguments

model

A tidylearn regularized model object

new_data

A data frame containing the new data

type

Type of prediction: "response" (default), "class" (for classification), "prob" (for classification)

lambda

Which lambda to use for prediction ("1se" or "min", default: "1se")

...

Additional arguments