Closed
Description
library(parsnip)
mod <- multinom_reg(penalty = 0.01)
mod <- set_engine(mod, "glmnet")
fit <- fit(mod, Species ~ Sepal.Length + Sepal.Width, iris)
predict(fit, iris, type = "prob")
#> Error: `predict()` doesn't work with multiple penalties (i.e. lambdas). Please specify a single value using `penalty = some_value` or use `multi_predict()` to get multiple predictions per row of data.
Created on 2019-11-11 by the reprex package (v0.3.0.9000)
The failure is in this part of parsnip:::predict_classprob.model_fit()
Line 25 in 74ff766
Metadata
Metadata
Assignees
Labels
No labels