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

Hyperparameters out of bounds #1003

Open malaman5 opened 1 week ago

malaman5 commented 1 week ago

Project Robyn

Describe issue

Im getting this error when running robyn_inputs()

Error in check_hyper_limits(hyperparameters_ordered, "thetas") : pinterest_spend_thetas's hyperparameter must have upper bound <1

The hyperparameter upper bound for is currently set to <1 in the json file: "pinterest_spend_alphas": [ 0.5, 3 ], "pinterest_spend_gammas": [ 0.3, 1 ], "pinterest_spend_thetas": [ 0.1, 0.4 ],

Provide reproducible example

input_collect <- robyn_inputs( dt_holidays = dt_prophet_holidays, dt_input = dataset, json_file = parameters_file )

The hyperparameters have been included in the parameters_file as a JSON just like other networks. When checking the input_collect object, the hyperparameters DO NOT include the pinterest hyperparameters. Not sure if it's not included due to the error or the error comes because the hyperparameters are not correctly declared. The pinterest hyperparameters have the very same structure as any other network which is parsed completely fine.

Environment & Robyn version