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.07k stars 323 forks source link

Issue when I run the model with 12 to 14 variables in dev (3.10.6001 ) #967

Closed amanrai2508 closed 1 month ago

amanrai2508 commented 1 month ago

Project Robyn

Describe issue

Currently I am using version 3.10.6001 (dev) of Robyn. When I use 2 to 4 variables, the model runs successfully. However, when I run the model with 12 to 14 variables, the following error occurs: "Error in png_dev(..., res = dpi, units = "in") "err_trace": "Traceback (most recent call last):\n File \"/app/src/robyn/python/robyn_train.py\" Can someone help me with this, Is this the problem of robyn ?

Environment & Robyn version

Make sure you're using the latest Robyn version before you post an issue.

yu-ya-tanaka commented 1 month ago

Hi @amanrai2508 , How are you using Robyn, is it API for Python? Is robyn_train.py a program you created? Also, please share the following

Thanks,

amanrai2508 commented 1 month ago

Hi @yu-ya-tanaka Error message : "status": "failed", "error_message": "Error in png_dev(..., res = dpi, units = \"in\") : \n unable to start device 'png'\nIn addition: Warning messages:\n1: In check_datadim(dt_input, all_ind_vars, rel = 10) :\n There are 13 independent variables & 70 data points. We recommend row:column ratio of 10 to 1\n2: In .font_global(font, quiet = FALSE) :\n Font 'Arial Narrow' is not installed, has other name, or can't be found\n3: In confidence_calcs(xDecompAgg, cls, all_paid, dep_var_type, k, :\n Cluster 9 does not contain enough models to calculate CI\nError: $ operator is invalid for atomic vectors\nExecution halted\n", "err_trace": "Traceback (most recent call last):\n File \"/app/src/robyn/python/robyn_train.py\", line 59, in do_robyn_train\n raise Exception(out['error'])\nException: Error in png_dev(..., res = dpi, units = \"in\") : \n unable to start device 'png'\nIn addition: Warning messages:\n1: In check_datadim(dt_input, all_ind_vars, rel = 10) :\n There are 13 independent variables & 70 data points. We recommend row:column ratio of 10 to 1\n2: In .font_global(font, quiet = FALSE) :\n Font 'Arial Narrow' is not installed, has other name, or can't be found\n3: In confidence_calcs(xDecompAgg, cls, all_paid, dep_var_type, k, :\n Cluster 9 does not contain enough models to calculate CI\nError: $ operator is invalid for atomic vectors\nExecution halted\n\n", "module": "train_robyn"

Yes, It is an API for python on top of R code ( It is working in production PRD: 3.10.3 (from their official cran release))

OS : Macos 14.4.1

yu-ya-tanaka commented 1 month ago

Thanks, Can you share the code where the error is happening? Also can you try R version Robyn (not API) to test whether the same error happen or not?

amanrai2508 commented 1 month ago

It got solved in the latest version.