Open AlfredoJF opened 4 months ago
Hi @AlfredoJF, thank you for bringing this up. Are you having issues with the out of sample prediction as well? Would you be able to give that method as well.
CC: @cetagostini
It seems like a broadcasting issue right @wd60622 ?
Hi @wd60622, no issues with the Out-of-sample posterior only with the BudgetOptimizer
y_test_pred = mmm.sample_posterior_predictive(X_pred=X_test, extend_idata=False, include_last_observations=True)
Hi @AlfredoJF, Thanks for checking that. If you have found the culprit, feel free to open a PR! If not, we can do some investigation. Would you be able to post a small reproducible example (including the initialization of the class)?
Hi @wd60622,
Yes, I'll post a reproducible example and leave the investigation to the experts for now. :)
Yes, I'll post a reproducible example and leave the investigation to the experts for now. :)
Great, sounds good. We a reproducible example, we can dig into it a bit better. We should be able to get to it soon
Hi @wd60622
I used the mmm and tvp example data to see if I could create a reproducible example for further investigation but I did not get the same error as in my model. I cannot share my dataset as it contains client's data but will try to create another dataset for this purpose.
Thanks for the patience!
I just tested the first workaround in #814, and it fixed this issue. So I assume #815 also fixes this one for the next release.
I just tested the first workaround in #814, and it fixed this issue. So I assume #815 also fixes this one for the next release.
Mmm interesting that that workaround helped out this one as well. Not obvious why that would be the case. Are you using 0.7.0 then? or installed from main branch?
@wd60622 Yes, I'm using 0.7.0 and have overwritten the MMM class for now as I'm closer to the delivery date of my project. I'll upgrade to 0.8.0 once it's released in a future iteration of my model
@wd60622 Yes, I'm using 0.7.0 and have overwritten the MMM class for now as I'm closer to the delivery date of my project. I'll upgrade to 0.8.0 once it's released in a future iteration of my model
Sounds good. Well glad that it sorted itself out. If you run into any more issues, feel free to raise an issue.
I will leave this issue open for now
Not quite sure if this will be fixed in the upcoming
0.7.0
release but noticed the re-written BudgetOptimizer does not work with time-varying intercept or there's a conflict withPyTensor
.I followed the mmm_budget_allocation_example.ipynb and in this cell was when I got the error.
Here is the error I got using an MMM with tvp that did not come up with another MMM without time-varying intercept: