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

tidy method for bootstraps is incorrect #115

Closed
topepo opened this issue Dec 6, 2019 · 1 comment
Closed

tidy method for bootstraps is incorrect #115

topepo opened this issue Dec 6, 2019 · 1 comment
Labels
tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day

Comments

@topepo
Copy link
Member

topepo commented Dec 6, 2019

Thanks @apreshill

library(tidymodels)
#> Registered S3 method overwritten by 'xts':
#>   method     from
#>   as.zoo.xts zoo
#> ── Attaching packages ────────────────────────────────────────────── tidymodels 0.0.3 ──
#> ✔ broom     0.5.2            ✔ purrr     0.3.3       
#> ✔ dials     0.0.4            ✔ recipes   0.1.7.9002  
#> ✔ discrim   0.0.1            ✔ rsample   0.0.5       
#> ✔ dplyr     0.8.3            ✔ tibble    2.99.99.9010
#> ✔ ggplot2   3.2.1            ✔ tune      0.0.0.9004  
#> ✔ infer     0.5.1            ✔ yardstick 0.0.4       
#> ✔ parsnip   0.0.4.9000
#> ── Conflicts ───────────────────────────────────────────────── tidymodels_conflicts() ──
#> ✖ purrr::discard()  masks scales::discard()
#> ✖ dplyr::filter()   masks stats::filter()
#> ✖ dplyr::lag()      masks stats::lag()
#> ✖ ggplot2::margin() masks dials::margin()
#> ✖ recipes::step()   masks stats::step()

set.seed(352)
tmp <- bootstraps(iris[1:30,], times = 1) %>% tidy(unique_ind = FALSE) 
sum(tmp$Data == "Analysis") # should be 30
#> [1] 20
sum(tmp$Data == "Assessment") # should be about 30 * exp(-1) ~~ 11
#> [1] 10

Created on 2019-12-06 by the reprex package (v0.3.0)

@DavisVaughan DavisVaughan added the tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day label Jan 15, 2020
@topepo topepo closed this as completed Feb 16, 2020
@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 Feb 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day
Projects
None yet
Development

No branches or pull requests

2 participants