Skip to content

Partial match warning with fit_resamples #334

@mine-cetinkaya-rundel

Description

@mine-cetinkaya-rundel

fit_resamples() for a logistic regression produces the following warning if warnPartialMatchDollar is set to TRUE. However, I'm not sure if the cause is fit_resamples() or another function it calls.

suppressMessages(library(tidymodels))

options(warnPartialMatchDollar = TRUE)

mtcars <- mtcars %>%
  mutate(vs = as.factor(vs))

set.seed(6735)
folds <- vfold_cv(mtcars, v = 5)

spline_rec <- recipe(vs ~ mpg, data = mtcars)

logistic_spec <- logistic_reg() %>%
  set_engine("glm")

spline_res <- fit_resamples(logistic_spec, spline_rec, folds)
#> 
#> Attaching package: 'rlang'
#> The following objects are masked from 'package:purrr':
#> 
#>     %@%, as_function, flatten, flatten_chr, flatten_dbl, flatten_int,
#>     flatten_lgl, flatten_raw, invoke, list_along, modify, prepend,
#>     splice
#> 
#> Attaching package: 'vctrs'
#> The following object is masked from 'package:tibble':
#> 
#>     data_frame
#> The following object is masked from 'package:dplyr':
#> 
#>     data_frame
#> ! Fold1: internal: partial match of 'se' to 'sensitivities', partial match of 'sp...
#> ! Fold2: internal: partial match of 'se' to 'sensitivities', partial match of 'sp...
#> ! Fold3: internal: partial match of 'se' to 'sensitivities', partial match of 'sp...
#> ! Fold4: internal: partial match of 'se' to 'sensitivities', partial match of 'sp...
#> ! Fold5: internal: partial match of 'se' to 'sensitivities', partial match of 'sp...

Created on 2020-12-05 by the reprex package (v0.3.0)

Session info
devtools::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 4.0.3 (2020-10-10)
#>  os       macOS Catalina 10.15.7      
#>  system   x86_64, darwin17.0          
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_GB.UTF-8                 
#>  ctype    en_GB.UTF-8                 
#>  tz       Europe/London               
#>  date     2020-12-05                  
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version     date       lib source                             
#>  assertthat    0.2.1       2019-03-21 [1] CRAN (R 4.0.0)                     
#>  backports     1.2.0       2020-11-02 [1] CRAN (R 4.0.2)                     
#>  broom       * 0.7.2       2020-10-20 [1] CRAN (R 4.0.2)                     
#>  callr         3.5.1       2020-10-13 [1] CRAN (R 4.0.2)                     
#>  class         7.3-17      2020-04-26 [1] CRAN (R 4.0.3)                     
#>  cli           2.2.0       2020-11-20 [1] CRAN (R 4.0.3)                     
#>  codetools     0.2-18      2020-11-04 [1] CRAN (R 4.0.2)                     
#>  colorspace    2.0-0       2020-11-11 [1] CRAN (R 4.0.3)                     
#>  crayon        1.3.4       2017-09-16 [1] CRAN (R 4.0.0)                     
#>  desc          1.2.0       2018-05-01 [1] CRAN (R 4.0.0)                     
#>  devtools      2.3.2       2020-09-18 [1] CRAN (R 4.0.2)                     
#>  dials       * 0.0.9       2020-09-16 [1] CRAN (R 4.0.2)                     
#>  DiceDesign    1.8-1       2019-07-31 [1] CRAN (R 4.0.0)                     
#>  digest        0.6.27      2020-10-24 [1] CRAN (R 4.0.2)                     
#>  dplyr       * 1.0.2.9000  2020-12-04 [1] Github (tidyverse/dplyr@1be8cfa)   
#>  ellipsis      0.3.1       2020-05-15 [1] CRAN (R 4.0.0)                     
#>  evaluate      0.14        2019-05-28 [1] CRAN (R 4.0.0)                     
#>  fansi         0.4.1       2020-01-08 [1] CRAN (R 4.0.0)                     
#>  foreach       1.5.1       2020-10-15 [1] CRAN (R 4.0.2)                     
#>  fs            1.5.0       2020-07-31 [1] CRAN (R 4.0.2)                     
#>  furrr         0.2.1       2020-10-21 [1] CRAN (R 4.0.2)                     
#>  future        1.20.1      2020-11-03 [1] CRAN (R 4.0.2)                     
#>  generics      0.1.0       2020-10-31 [1] CRAN (R 4.0.2)                     
#>  ggplot2     * 3.3.2       2020-06-19 [1] CRAN (R 4.0.1)                     
#>  globals       0.14.0      2020-11-22 [1] CRAN (R 4.0.2)                     
#>  glue          1.4.2       2020-08-27 [1] CRAN (R 4.0.2)                     
#>  gower         0.2.2       2020-06-23 [1] CRAN (R 4.0.1)                     
#>  GPfit         1.0-8       2019-02-08 [1] CRAN (R 4.0.0)                     
#>  gtable        0.3.0       2019-03-25 [1] CRAN (R 4.0.0)                     
#>  hardhat       0.1.5       2020-11-09 [1] CRAN (R 4.0.3)                     
#>  highr         0.8         2019-03-20 [1] CRAN (R 4.0.0)                     
#>  htmltools     0.5.0.9003  2020-12-04 [1] Github (rstudio/htmltools@d18bd8e) 
#>  infer       * 0.5.3       2020-07-14 [1] CRAN (R 4.0.2)                     
#>  ipred         0.9-9       2019-04-28 [1] CRAN (R 4.0.0)                     
#>  iterators     1.0.13      2020-10-15 [1] CRAN (R 4.0.2)                     
#>  knitr         1.30        2020-09-22 [1] CRAN (R 4.0.2)                     
#>  lattice       0.20-41     2020-04-02 [1] CRAN (R 4.0.3)                     
#>  lava          1.6.8.1     2020-11-04 [1] CRAN (R 4.0.2)                     
#>  lhs           1.1.1       2020-10-05 [1] CRAN (R 4.0.2)                     
#>  lifecycle     0.2.0       2020-03-06 [1] CRAN (R 4.0.0)                     
#>  listenv       0.8.0       2019-12-05 [1] CRAN (R 4.0.0)                     
#>  lubridate     1.7.9.2     2020-11-13 [1] CRAN (R 4.0.3)                     
#>  magrittr      2.0.1       2020-11-17 [1] CRAN (R 4.0.3)                     
#>  MASS          7.3-53      2020-09-09 [1] CRAN (R 4.0.3)                     
#>  Matrix        1.2-18      2019-11-27 [1] CRAN (R 4.0.3)                     
#>  memoise       1.1.0       2017-04-21 [1] CRAN (R 4.0.0)                     
#>  modeldata   * 0.1.0       2020-10-22 [1] CRAN (R 4.0.2)                     
#>  munsell       0.5.0       2018-06-12 [1] CRAN (R 4.0.0)                     
#>  nnet          7.3-14      2020-04-26 [1] CRAN (R 4.0.3)                     
#>  parallelly    1.21.0      2020-10-27 [1] CRAN (R 4.0.2)                     
#>  parsnip     * 0.1.4       2020-10-27 [1] CRAN (R 4.0.2)                     
#>  pillar        1.4.7       2020-11-20 [1] CRAN (R 4.0.3)                     
#>  pkgbuild      1.1.0       2020-07-13 [1] CRAN (R 4.0.2)                     
#>  pkgconfig     2.0.3       2019-09-22 [1] CRAN (R 4.0.0)                     
#>  pkgload       1.1.0       2020-05-29 [1] CRAN (R 4.0.0)                     
#>  plyr          1.8.6       2020-03-03 [1] CRAN (R 4.0.0)                     
#>  prettyunits   1.1.1       2020-01-24 [1] CRAN (R 4.0.0)                     
#>  pROC          1.16.2      2020-03-19 [1] CRAN (R 4.0.0)                     
#>  processx      3.4.5       2020-11-30 [1] CRAN (R 4.0.2)                     
#>  prodlim       2019.11.13  2019-11-17 [1] CRAN (R 4.0.0)                     
#>  ps            1.4.0       2020-10-07 [1] CRAN (R 4.0.2)                     
#>  purrr       * 0.3.4       2020-04-17 [1] CRAN (R 4.0.0)                     
#>  R6            2.5.0       2020-10-28 [1] CRAN (R 4.0.2)                     
#>  Rcpp          1.0.5       2020-07-06 [1] CRAN (R 4.0.2)                     
#>  recipes     * 0.1.15      2020-11-11 [1] CRAN (R 4.0.2)                     
#>  remotes       2.2.0       2020-07-21 [1] CRAN (R 4.0.2)                     
#>  rlang       * 0.4.9       2020-11-26 [1] CRAN (R 4.0.3)                     
#>  rmarkdown     2.5.3       2020-12-04 [1] Github (rstudio/rmarkdown@2989595) 
#>  rpart         4.1-15      2019-04-12 [1] CRAN (R 4.0.3)                     
#>  rprojroot     2.0.2       2020-11-15 [1] CRAN (R 4.0.3)                     
#>  rsample     * 0.0.8       2020-09-23 [1] CRAN (R 4.0.2)                     
#>  rstudioapi    0.13.0-9000 2020-11-12 [1] Github (rstudio/rstudioapi@4baeb39)
#>  scales      * 1.1.1       2020-05-11 [1] CRAN (R 4.0.0)                     
#>  sessioninfo   1.1.1       2018-11-05 [1] CRAN (R 4.0.0)                     
#>  stringi       1.5.3       2020-09-09 [1] CRAN (R 4.0.2)                     
#>  stringr       1.4.0       2019-02-10 [1] CRAN (R 4.0.0)                     
#>  survival      3.2-7       2020-09-28 [1] CRAN (R 4.0.3)                     
#>  testthat      3.0.0       2020-10-31 [1] CRAN (R 4.0.2)                     
#>  tibble      * 3.0.4       2020-10-12 [1] CRAN (R 4.0.2)                     
#>  tidymodels  * 0.1.2       2020-11-22 [1] CRAN (R 4.0.2)                     
#>  tidyr       * 1.1.2       2020-08-27 [1] CRAN (R 4.0.2)                     
#>  tidyselect    1.1.0       2020-05-11 [1] CRAN (R 4.0.0)                     
#>  timeDate      3043.102    2018-02-21 [1] CRAN (R 4.0.0)                     
#>  tune        * 0.1.2       2020-11-17 [1] CRAN (R 4.0.3)                     
#>  usethis       1.9.0.9000  2020-11-14 [1] Github (r-lib/usethis@862f2cc)     
#>  vctrs       * 0.3.5       2020-11-17 [1] CRAN (R 4.0.2)                     
#>  withr         2.3.0       2020-09-22 [1] CRAN (R 4.0.2)                     
#>  workflows   * 0.2.1       2020-10-08 [1] CRAN (R 4.0.2)                     
#>  xfun          0.19        2020-10-30 [1] CRAN (R 4.0.2)                     
#>  yaml          2.2.1       2020-02-01 [1] CRAN (R 4.0.0)                     
#>  yardstick   * 0.0.7       2020-07-13 [1] CRAN (R 4.0.2)                     
#> 
#> [1] /Library/Frameworks/R.framework/Versions/4.0/Resources/library

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions