facebookexperimental / Robyn

Robyn is an experimental, AI/ML-powered and open sourced Marketing Mix Modeling (MMM) package from Meta Marketing Science. Our mission is to democratise modeling knowledge, inspire the industry through innovation, reduce human bias in the modeling process & build a strong open source marketing science community.
https://facebookexperimental.github.io/Robyn/
MIT License
1.12k stars 329 forks source link

Error in UseMethod("mutate") & Error in robyn_outputs(InputCollect, OutputModels, pareto_fronts = "auto" #741

Closed OliRdp closed 4 months ago

OliRdp commented 1 year ago

Project Robyn

Describe issue

So I ran the model again after making some alterations to the variables included and I never had any issues before with the Outputcollect, but now all of a sudden I get two error messages.

`>>> Running Pareto calculations for 12500 models on auto fronts...

Automatically selected 5 Pareto-fronts to contain at least 100 pareto-optimal models (124) Pareto-Front: 1 [23 models] 00:00:10 [==================================================] 100% | 23
Pareto-Front: 2 [19 models] 00:00:07 [==================================================] 100% | 19
Pareto-Front: 3 [24 models] 00:00:09 [==================================================] 100% | 24
Pareto-Front: 4 [33 models] 00:00:14 [==================================================] 100% | 33
Pareto-Front: 5 [25 models] 00:00:23 [==================================================] 100% | 25

Calculating clusters for model selection using Pareto fronts... Couldn't automatically create clusters: Error: empty cluster: try a better set of initial centers

Error in UseMethod("mutate") : no applicable method for 'mutate' applied to an object of class "NULL" Error in robyn_outputs(InputCollect, OutputModels, pareto_fronts = "auto", : object '"auto"' not found`

Environment & Robyn version

`> packageVersion("Robyn") [1] ‘3.9.0’

sessionInfo() R version 4.3.0 (2023-04-21) Platform: x86_64-apple-darwin20 (64-bit) Running under: macOS Monterey 12.6

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Amsterdam tzcode source: internal

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

other attached packages: [1] doRNG_1.8.6 rngtools_1.5.2 foreach_1.5.2
[4] dplyr_1.1.2 Robyn_3.9.0 reticulate_1.28
[7] readxl_1.4.2 PerformanceAnalytics_2.0.4 xts_0.13.1
[10] zoo_1.8-12

loaded via a namespace (and not attached): [1] tidyselect_1.2.0 farver_2.1.1 loo_2.6.0 bitops_1.0-7
[5] RCurl_1.98-1.12 lazyeval_0.2.2 pROC_1.18.0 digest_0.6.31
[9] rpart_4.1.19 timechange_0.2.0 lifecycle_1.0.3 StanHeaders_2.21.0-7 [13] survival_3.5-5 processx_3.8.1 magrittr_2.0.3 compiler_4.3.0
[17] rlang_1.1.1 tools_4.3.0 igraph_1.4.2 utf8_1.2.3
[21] yaml_2.3.7 labeling_0.4.2 lares_5.2.1 prettyunits_1.1.1
[25] pkgbuild_1.4.0 here_1.0.1 RColorBrewer_1.1-3 plyr_1.8.8
[29] xml2_1.3.4 withr_2.5.0 purrr_1.0.1 rPref_1.4.0
[33] h2o_3.40.0.1 grid_4.3.0 stats4_4.3.0 fansi_1.0.4
[37] colorspace_2.1-0 inline_0.3.19 ggplot2_3.4.2 scales_1.2.1
[41] iterators_1.0.14 ggridges_0.5.4 cli_3.6.1 crayon_1.5.2
[45] generics_0.1.3 RcppParallel_5.1.7 rstudioapi_0.14 httr_1.4.5
[49] rstan_2.21.8 stringr_1.5.0 splines_4.3.0 rvest_1.0.3
[53] prophet_1.0 parallel_4.3.0 cellranger_1.1.0 matrixStats_0.63.0
[57] vctrs_0.6.2 glmnet_4.1-7 Matrix_1.5-4 jsonlite_1.8.4
[61] minpack.lm_1.2-3 callr_3.7.3 patchwork_1.1.2 tidyr_1.3.0
[65] glue_1.6.2 nloptr_2.0.3 codetools_0.2-19 ps_1.7.5
[69] lubridate_1.9.2 stringi_1.7.12 shape_1.4.6 gtable_0.3.3
[73] quadprog_1.5-8 rpart.plot_3.1.1 munsell_0.5.0 tibble_3.2.1
[77] pillar_1.9.0 R6_2.5.1 doParallel_1.0.17 rprojroot_2.0.3
[81] lattice_0.21-8 extraDistr_1.9.1 png_0.1-8 openxlsx_4.2.5.2
[85] Rcpp_1.0.10 zip_2.3.0 gridExtra_2.3 pkgconfig_2.0.3 `

gufengzhou commented 1 year ago

looks like a dependency version issue at the first glance. have you updated dependencies like the whole tidyverse packages lately? you can try update robyn to the latest github version and rerun?

gufengzhou commented 4 months ago

haven't seen this one reported anymore for a long time. please reopen if it reoccurs