Closed CJ2407 closed 4 months ago
@laresbernardo @gufengzhou Sorry for tagging you guys specifically, but I could really use your inputs here! Thank you so much in advance :)
I suggest you to turn off ts_validation. Because you're not really forecasting and thus test stats noch really necessary.
In general it's very difficult to get good test R2 because of the step change that's completely outside of the training data. The model has no chance to "learn" about the effect so to say.
Thanks @gufengzhou. Your input is very helpful. A few more things to clarify on the same note -
I'd say it's ok to disable ts validation without forecasting. MMM's main purpose is inference. Robyn already use ridge regression to reduce overfitting, also the second objective function decomp.rssd prevents the optimisation from overfitting to the training set.
For your promotion, if you spend extra on these periods, it should be reflected as media spend. If could also flag the holiday data frame to include some of these effects into holiday if you don't want them separately.
please reopen if necessary
Project Robyn
Describe issue
My brand has launched a new collection in Mar 2023 which has resulted in a step increase in the average daily sales. I am using 972 days of data in this modeling (Feb 2021 - Sep 2023). To account for this change, I have added context variable called "BrandMoment" which I have set to 1 from 3/4/2023 onwards. I tried numerical values as well in this variable trying to give gradual increase in the impact of this brand moment. I have also given interaction context var = having a product of trend variable with simply categorical brand moment variable. But none of these way I am getting this new trend captured in the prediction.
Could you please assist on how to proceed with this to get better R2 in the Test and better NRMSE for test? So, far I have not tuned any hyperparameters for any channel and they are set to recommended values. The channel that was promoting this launch is also generating 0 coefficient.
Attaching files to recreate this example on your side - Daily_Data_M2_v1 - github.csv CodeforGithub.txt