You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently parsnip does not throw an error if a user chooses logistic_reg() to fit a multiclass classification model, but the result is wrong and misleading. Moreover, the documentation doesn't mention that logistic_reg() should only be used for binary classification. It took me a while to figure out that I should use multinom_reg() instead. It would be nice if parsnip can prevent this usage explicitly.
We recently revamped our documentation so that logistic_reg() says:
logistic_reg() defines a generalized linear model for binary outcomes. A linear combination of the predictors is used to model the log odds of an event.
We are already highlighting that it is for binary outcomes but we could add a pointer to multinom_reg() on that landing page.
Sidenote: Should we also mention that some engines like xgboost and ranger handle multiclass classification on their own? Probably not here.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Currently parsnip does not throw an error if a user chooses
logistic_reg()
to fit a multiclass classification model, but the result is wrong and misleading. Moreover, the documentation doesn't mention thatlogistic_reg()
should only be used for binary classification. It took me a while to figure out that I should usemultinom_reg()
instead. It would be nice if parsnip can prevent this usage explicitly.Created on 2021-08-23 by the reprex package (v2.0.0)
The text was updated successfully, but these errors were encountered: