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
A vector of column identifiers, or one of dplyr selector functions to choose which variables contains the class probabilities. It defaults to the prefix used by tidymodels (.pred_). The order of the identifiers will be considered the same as the order of the levels of the truth variable.
But it doesn't seem clear that they have to be .pred_x and similar.
The text was updated successfully, but these errors were encountered:
I also ran into this issue and it appears that the columns are identified using either the defaults (.pred_x) or the position. A more informative error message such as cli::cli_abort("{.arg truth} please use the .pred_x naming convention.") would help but that doesn't seem sufficient for a PR, so for now I just changed my code (the column was named prob).
From this Stack Overflow question, this will not work:
Created on 2023-07-06 with reprex v2.0.2
But the same code works if we change the column name to
.pred_x
:Created on 2023-07-06 with reprex v2.0.2
I see that the docs say:
But it doesn't seem clear that they have to be
.pred_x
and similar.The text was updated successfully, but these errors were encountered: