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 322 forks source link

Error in robyn_allocator #916

Open caarolinagil opened 5 months ago

caarolinagil commented 5 months ago

When executing the robyn_allocator function, this message appears, but I am not sure what it means since I have checked the data table and the format of the variables is correct.

Here's my code:

AllocatorCollect1 <- robyn_allocator( InputCollect = InputCollect, OutputCollect = OutputCollect, select_model = select_model, scenario = "max_historical_response", #simulates the scenario "what's the optimal media spend allocation given the same average spend level in history?" date_min = date_min, date_max = date_max, optim_algo="SLSQP_AUGLAG", # "SLSQP_AUGLAG" , "MMA_AUGLAG" channel_constr_low = c(0.7), channel_constr_up = c(1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25), export = FALSE )

image

Environment & Robyn version

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

gufengzhou commented 4 months ago

sorry for the late reply. Haven't seen this one before. Can you extend the min max dates and see if it works?

caarolinagil commented 4 months ago

I receive the same error when extend the min max dates. I've modified 2 weeks for 5 weeks and it doesn't seem to work.

caarolinagil commented 4 months ago

For what it's worth, I've tried to do the same execution with a model with version 3.10.3 and it works.

gufengzhou commented 4 months ago

Please use the later version. 3.9 is very old