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.16k stars 347 forks source link

Facing an intermittent issue where model is failing sometimes and passing sometimes while providing Contextual factorial variables as the independent variables #1164

Open khanasim19 opened 4 days ago

khanasim19 commented 4 days ago

Project Robyn

Describe issue

Facing an intermittent issue where model is sometimes failing and sometimes passing while providing Contextual factorial variables as the independent variables with error message as below : { "request_id": "ls_colgate_palmolive_65e4d68a/mmm/col_mmm_v2", "status": "failed", "error_message": "Error in colMeans(x, na.rm = TRUE) : 'x' must be numeric\nCalls: robyn_train_function ... robyn_mmm -> lambda_seq -> scale -> scale.default -> colMeans\nIn addition: Warning message:\nIn .font_global(font, quiet = FALSE, ...) :\n Font(s) 'Arial Narrow' not installed, with other name, or can't be found\nExecution halted\n", "err_trace": "Traceback (most recent call last):\n File \"/app/src/robyn/python/robyn_train.py\", line 66, in do_robyn_train\n raise Exception(out[\"error\"])\nException: Error in colMeans(x, na.rm = TRUE) : 'x' must be numeric\nCalls: robyn_train_function ... robyn_mmm -> lambda_seq -> scale -> scale.default -> colMeans\nIn addition: Warning message:\nIn .font_global(font, quiet = FALSE, ...) :\n Font(s) 'Arial Narrow' not installed, with other name, or can't be found\nExecution halted\n\n", "module": "train_robyn" }

Provide reproducible example

Attaching model configuration and input file for reproducibility :

mmm_col_mmm_v2_input_Colgate_Palmolive - final_data.csv mmm_col_mmm_v2_input_mapping_schema.json

Environment & Robyn version

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

khanasim19 commented 3 days ago

@gufengzhou