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

int_pctl.tune_results() errors with regression model #812

Closed
hfrick opened this issue Jan 16, 2024 · 1 comment · Fixed by #817
Closed

int_pctl.tune_results() errors with regression model #812

hfrick opened this issue Jan 16, 2024 · 1 comment · Fixed by #817

Comments

@hfrick
Copy link
Member

hfrick commented Jan 16, 2024

This should work, no?

library(tidymodels)

set.seed(2193)
tune_res <-
  linear_reg(penalty = tune(), engine = "glmnet") %>%
  tune_grid(
    mpg ~ .,
    resamples = vfold_cv(mtcars, 2),
    metrics = metric_set(rmse),
    grid = 2,
    control = control_grid(save_pred = TRUE)
  )
int_pctl(tune_res, metrics = "rmse", times = 2)
#> Error in `purrr::map2()`:
#> ℹ In index: 1.
#> Caused by error in `check_tidy()`:
#> ! `statistics` should select a list column of tidy results.

Created on 2024-01-16 with reprex v2.0.2

@hfrick hfrick changed the title int_pctl.tune_results() errors int_pctl.tune_results() errors with regression model Jan 16, 2024
topepo added a commit that referenced this issue Jan 19, 2024
* verify that the 'metrics' argument is a metric set for #813 and #812

* Update R/int_pctl.R

Co-authored-by: Hannah Frick <[email protected]>

* update snapshot

---------

Co-authored-by: Hannah Frick <[email protected]>
Copy link

github-actions bot commented Feb 3, 2024

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 Feb 3, 2024
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