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

dev dplyr join warnings #528

Closed
simonpcouch opened this issue Jul 22, 2022 · 1 comment · Fixed by #529
Closed

dev dplyr join warnings #528

simonpcouch opened this issue Jul 22, 2022 · 1 comment · Fixed by #529

Comments

@simonpcouch
Copy link
Contributor

Same warning as #526, but arises from from tune grid paths rather than model specs at multi_predict. This is with dev dplyr (introduced in their 5910) and tidymodels/parsnip#772. Seems to only come up with grid set explicitly.🏄

library(tidymodels)

spec <- linear_reg(engine = "glmnet", penalty = tune(), mixture = tune())
rec <- recipe(mpg ~ ., data = mtcars)
res <- bootstraps(mtcars)

tune_grid(spec, rec, res, grid = cross_df(list(penalty = 10^(-6:-1), mixture = 1)))
#> Warning: Each row in `x` should match at most 1 row in `y`.
#> ℹ Row 1 of `x` matches multiple rows.
#> ℹ If multiple matches are expected, specify `multiple = "all"` in the join call
#>   to silence this warning.
#> # Tuning results
#> # Bootstrap sampling 
#> # A tibble: 25 × 4
#>    splits          id          .metrics          .notes          
#>    <list>          <chr>       <list>            <list>          
#>  1 <split [32/10]> Bootstrap01 <tibble [12 × 6]> <tibble [0 × 3]>
#>  2 <split [32/13]> Bootstrap02 <tibble [12 × 6]> <tibble [0 × 3]>
#>  3 <split [32/12]> Bootstrap03 <tibble [12 × 6]> <tibble [0 × 3]>
#>  4 <split [32/10]> Bootstrap04 <tibble [12 × 6]> <tibble [0 × 3]>
#>  5 <split [32/13]> Bootstrap05 <tibble [12 × 6]> <tibble [0 × 3]>
#>  6 <split [32/11]> Bootstrap06 <tibble [12 × 6]> <tibble [0 × 3]>
#>  7 <split [32/12]> Bootstrap07 <tibble [12 × 6]> <tibble [0 × 3]>
#>  8 <split [32/11]> Bootstrap08 <tibble [12 × 6]> <tibble [0 × 3]>
#>  9 <split [32/12]> Bootstrap09 <tibble [12 × 6]> <tibble [0 × 3]>
#> 10 <split [32/13]> Bootstrap10 <tibble [12 × 6]> <tibble [0 × 3]>
#> # … with 15 more rows
#> # ℹ Use `print(n = ...)` to see more rows

Created on 2022-07-22 by the reprex package (v2.0.1)

@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant