Replies: 6 comments
-
@jgzga Thanks for reporting! Can you try running the example notebook (https://www.pymc-marketing.io/en/stable/notebooks/mmm/mmm_example.html) and see if these errors still happen 🙏 ? For me the example notebook runs as expected |
Beta Was this translation helpful? Give feedback.
-
Can you try removing # Build the model
mmm.build_model(X, y) |
Beta Was this translation helpful? Give feedback.
-
I think it has something to do with the standard scaler being used. Could you try without that scaling? The model already doesn't scaling of the variables via the maxabs scaler. The media variables end up always being positive which wouldn't be the case after standard scaling EDIT: Seeing that it is not the media being scaled in your example. Might be good to try with out your processing though |
Beta Was this translation helpful? Give feedback.
-
Can you share what is the result of this?
|
Beta Was this translation helpful? Give feedback.
-
Does running this with the default priors make any difference? |
Beta Was this translation helpful? Give feedback.
-
When you run, df['y'] = df['y'].replace(' - ', np.nan).apply(pd.to_numeric, errors='coerce')
df = df.dropna(subset=['y']) are you dropping values in the middle of the time series? |
Beta Was this translation helpful? Give feedback.
-
I have this code and it was working well until the last library update. I'm using the library by installing it like this: !pip install git+https://github.com/pymc-labs/pymc-marketing.git. I'm including the graphs of "Prior Predictive Check" and "Posterior Predictive Check". In the "Posterior Predictive Check" graph, it's as if the "Observed" line is adding a trend without me defining it.
Can someone help me with this?
Plots before the update
Plots after the update
The code is exactly the same and it's as follows. I also tried installing version 0.8.0 but it still gives me the same result.
Beta Was this translation helpful? Give feedback.
All reactions