Both predict() and multi_predict() have a default of type = NULL. For poisson_reg(engine = "glmnet"), predict() returns the mean count (glmnet's type "response") while multi_predict() returns the linear predictor (glmnet's type "link").
I would expect both to default to the same, and I would expect that to be the mean count.
Side note: we introduced a prediction type "linear_pred" for censored regression, which we might extend to other modes.
Both
predict()
andmulti_predict()
have a default oftype = NULL
. Forpoisson_reg(engine = "glmnet")
,predict()
returns the mean count (glmnet's type"response"
) whilemulti_predict()
returns the linear predictor (glmnet's type"link"
).I would expect both to default to the same, and I would expect that to be the mean count.
Side note: we introduced a prediction type
"linear_pred"
for censored regression, which we might extend to other modes.Created on 2023-01-21 with reprex v2.0.2