lightweight_mmm icon indicating copy to clipboard operation
lightweight_mmm copied to clipboard

csv files for all the plot functions

Open virithavanama opened this issue 3 years ago • 4 comments

Hi Team,

Can you please provide the way to generate the CSV files for response curve plots and actual vs predicted plots?

virithavanama avatar Sep 03 '22 00:09 virithavanama

@virithavanama Thanks for requesting this!

CSV might not be the format we would return it directly but either an array or DataFrame could be, which is easily converted to CSV.

We will look into it.

pabloduque0 avatar Sep 03 '22 08:09 pabloduque0

can we get the dataframe for recreating the 'plot_pre_post_budget_allocation_comparison' and 'plot_model_fit' plots

virithavanama avatar Sep 06 '22 13:09 virithavanama

Hi @pabloduque0 , just checking on this request. Even I would like to know how can we get data in any format (csv/array etc) for all model outputs.

shekharkhandelwal1983 avatar Dec 15 '22 10:12 shekharkhandelwal1983

hi virithavanama and shekharkhandelwal1983!

For the plot_model_fit plot, both the target curve and the posterior predictions are produced by lines 662-666 of plot.py, so you can just replicate those in a Colab to get the data.

For the plot_pre_post_budget_allocation_comparison, the data are passed as inputs to those functions so you should already have them, but lines 843-845 convert them to fractions if that's easier to work with.

michevan avatar Jan 03 '23 19:01 michevan