Skip to content
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

Document which models support multivate (multiple outcomes) regression #798

Open
juliasilge opened this issue Aug 22, 2022 · 2 comments
Open

Comments

@juliasilge
Copy link
Member

juliasilge commented Aug 22, 2022

This SO question points out that it is difficult to know which models you can use if you have a multiple-outcome problem. I believe you can see this by searching for which models use the maybe_multivariate() function but documenting it in a way that surfaces this info to folks would be more helpful.

@wbuchanan
Copy link

Any chance of this being implemented any time soon?

@Deleetdk
Copy link

Deleetdk commented Apr 26, 2024

I got this error message. Looking on Google, I am the only person, so I might as well note it here.

Internal error: Multiple outcomes are not supported in .estimate_metrics()``

Here's a simple reprex, just for ease of reference:

library(tidymodels)

set.seed(1)
iris_folds = vfold_cv(iris, v = 5)

some_model = linear_reg()

some_recipe = recipe(
  iris,
  vars = names(iris),
  roles = c(rep("outcome", 4), "predictor"))

#workflow
some_wf = workflow() %>% 
  add_model(some_model) %>% 
  add_recipe(some_recipe)

#fit
some_fit = some_wf %>% 
  fit_resamples(
    iris_folds,
    control = control_resamples(save_pred = TRUE)
  )
#> → A | error:   Internal error: Multiple outcomes are not supported in `.estimate_metrics()`.
#> There were issues with some computations   A: x1
#> There were issues with some computations   A: x5
#> 
#> Warning: All models failed. Run `show_notes(.Last.tune.result)` for more
#> information.

Created on 2024-04-26 with [reprex v2.0.2](https://reprex.tidyverse.org/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants