-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multi-outcomes support for spruce_prob_multi
shall clarify input format for multiple pred_levels
#223
Comments
spruce_prob_multi
shall clarify input format for multiple pred_levels
spruce_prob_multi
shall clarify input format for multiple pred_levels
improve `spruce_probe_multi()` test add a test for tidymodels#223
What if the inputs for Like: spruce_prob_multi(
spruce_prob(c("a", "b"), matrix(c(.3, .7, .4, .6), nrow = 2, byrow = TRUE)),
foo = spruce_prob(c("a", "b", "c"), matrix(c(.2, .7, .1, .2, .6, .2), nrow = 2, byrow = TRUE))
) So It might make sense to make all of the
That way they all have a somewhat consistent interface and we can apply the |
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. |
Feature (this is a follow-up of #161)
In situations when models is multi-outcomes like prediction is a multi-horizon forecast or a multi-output prediction in
It would be nice to be able to use
hardhat::spurce_*_multi
commands.Reprex
see the Reprex in #161
Proposed API
The API proposed by @DavisVaughan in #161 is fine for me:
But the API for
spruce_prob_multi()
need some clarification :This opens questions for the inputs of the
spruce_prob_multi()
functions.My initial thought was to generalize the
spruce_prob()
inputs but this fails with the example provided where the 2 outcomes have respectively 2 and 3 levels (which is an expected situation) as we cannot have a dataframe of thepred_levels
vector of unequal size :As there is low chance of that the multi-outcomes factors may have the same number of levels. So there is no chance to make them all reside in a
pred_levels_df
input:What do you think could be the input type for
prob_levels_df
The text was updated successfully, but these errors were encountered: