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.16k stars 344 forks source link

Robyn one pager: fitted_vs_actual plot implementation #1112

Closed sumalreddy17 closed 2 weeks ago

sumalreddy17 commented 2 weeks ago

Note: Plotting is done with 90% accuracy expectation. Once all the 8 plots are generated and merged, a different PR will be raised if needed to take care of accuracy.

Add actual vs predicted response plot with custom value formatting

Implements time series comparison visualization Fixes matplotlib formatter compatibility Adds train/validation/test split indicators Matches R implementation styling

Testing:

Screenshot 2024-11-05 at 5 28 54 PM

Graph plotted by R code:

Screenshot 2024-11-06 at 2 53 30 PM

TODO: Check for accuracy of plotting.

dhavalpatel624624 commented 2 weeks ago

Looks good! I think we will refactor all the visualizers in one PR at some point to extend from BaseVisualizer after its complete :)