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
It's not always immediately clear which factor level is treated as the event level for logistic regression: it can vary from engine to engine or even for a single engine, depending on the input (e.g. glm() and #491). Usually, we get questions about this once it's time to calculate metrics. Hence the questions surfacing on the yardstick repo more than here and us putting info about theevent_level argument up there.
An additional way to make this a little easier to understand could be to try to store the event level in the parsnip model and, e.g., print it. That only helps when people interact with the model directly but it could be something.
It's not always immediately clear which factor level is treated as the event level for logistic regression: it can vary from engine to engine or even for a single engine, depending on the input (e.g.
glm()
and #491). Usually, we get questions about this once it's time to calculate metrics. Hence the questions surfacing on the yardstick repo more than here and us putting info about theevent_level
argument up there.An additional way to make this a little easier to understand could be to try to store the event level in the parsnip model and, e.g., print it. That only helps when people interact with the model directly but it could be something.
Idea by @mine-cetinkaya-rundel
Created on 2024-04-11 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: