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

Slide 57 not working #2

Closed
fedemolina opened this issue Jan 16, 2020 · 1 comment
Closed

Slide 57 not working #2

fedemolina opened this issue Jan 16, 2020 · 1 comment

Comments

@fedemolina
Copy link

fedemolina commented Jan 16, 2020

param_grid <- 
  param_grid %>%
  mutate( 
  specs = merge(., spec_knn_varying)
)

Error in as.data.frame.default(y) :
cannot coerce class ‘c("nearest_neighbor", "model_spec")’ to a data.frame

sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.3 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=es_UY.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=es_UY.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=es_UY.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=es_UY.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base

other attached packages:
[1] rstanarm_2.19.2 Rcpp_1.0.3 yardstick_0.0.4 tibble_2.1.3 rsample_0.0.5 tidyr_1.0.0
[7] recipes_0.1.9 purrr_0.3.3 parsnip_0.0.5 infer_0.5.1 dplyr_0.8.3 tidymodels_0.0.3
[13] sessioninfo_1.1.1 rpart_4.1-15 pROC_1.16.1 kknn_1.3.1 klaR_0.6-14 MASS_7.3-51.5
[19] ipred_0.9-9 glmnet_3.0-2 Matrix_1.2-18 ggrepel_0.8.1 earth_5.1.2 plotmo_3.5.6
[25] TeachingDemos_2.10 plotrix_3.7-7 Formula_1.2-3 e1071_1.7-3 doParallel_1.0.15 iterators_1.0.12
[31] foreach_1.4.7 dials_0.0.4 scales_1.1.0 caret_6.0-85 ggplot2_3.2.1 lattice_0.20-38
[37] broom_0.5.3 AmesHousing_0.0.3

loaded via a namespace (and not attached):
[1] backports_1.1.5 tidytext_0.2.2 plyr_1.8.5 igraph_1.2.4.2 lazyeval_0.2.2 splines_3.6.2
[7] crosstalk_1.0.0 listenv_0.8.0 SnowballC_0.6.0 rstantools_2.0.0 inline_0.3.15 digest_0.6.23
[13] htmltools_0.4.0 rsconnect_0.8.16 fansi_0.4.0 magrittr_1.5 globals_0.12.5 gower_0.2.1
[19] matrixStats_0.55.0 xts_0.11-2 prettyunits_1.0.2 colorspace_1.4-1 xfun_0.11 callr_3.4.0
[25] crayon_1.3.4 lme4_1.1-21 zeallot_0.1.0 survival_3.1-8 zoo_1.8-6 glue_1.3.1
[31] gtable_0.3.0 questionr_0.7.0 pkgbuild_1.0.6 rstan_2.19.2 shape_1.4.4 miniUI_0.1.1.1
[37] xtable_1.8-3 stats4_3.6.2 lava_1.6.6 StanHeaders_2.19.0 prodlim_2019.11.13 DT_0.11
[43] htmlwidgets_1.5.1 threejs_0.3.1 farver_2.0.1 pkgconfig_2.0.3 loo_2.2.0 nnet_7.3-12
[49] utf8_1.1.4 labeling_0.3 tidyselect_0.2.5 rlang_0.4.2 DiceDesign_1.8-1 reshape2_1.4.3
[55] later_1.0.0 munsell_0.5.0 tools_3.6.2 cli_2.0.0 generics_0.0.2 ggridges_0.5.2
[61] stringr_1.4.0 fastmap_1.0.1 knitr_1.26 ModelMetrics_1.2.2.1 processx_3.4.1 packrat_0.5.0
[67] future_1.15.1 nlme_3.1-143 mime_0.8 tokenizers_0.2.1 compiler_3.6.2 bayesplot_1.7.1
[73] shinythemes_1.1.2 rstudioapi_0.10 testthat_2.3.1 tidyposterior_0.0.2 stringi_1.4.3 highr_0.8
[79] ps_1.3.0 desc_1.2.0 nloptr_1.2.1 markdown_1.1 shinyjs_1.1 vctrs_0.2.1
[85] pillar_1.4.3 lifecycle_0.1.0 furrr_0.1.0 combinat_0.0-8 data.table_1.12.8 httpuv_1.5.2
[91] R6_2.4.1 promises_1.1.0 gridExtra_2.3 janeaustenr_0.1.5 codetools_0.2-16 pkgload_1.0.2
[97] boot_1.3-24 colourpicker_1.0 gtools_3.8.1 assertthat_0.2.1 rprojroot_1.2 withr_2.1.2
[103] shinystan_2.5.0 grid_3.6.2 timeDate_3043.102 class_7.3-15 minqa_1.2.4 tidypredict_0.4.3
[109] shiny_1.4.0 lubridate_1.7.4 base64enc_0.1-3 dygraphs_1.1.1.6

@fedemolina
Copy link
Author

Not resolve

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

No branches or pull requests

1 participant