arviz-devs / arviz-plots

ArviZ modular plotting
https://arviz-plots.readthedocs.io
Apache License 2.0
2 stars 1 forks source link

Allow precomputing #40

Open OriolAbril opened 4 months ago

OriolAbril commented 4 months ago

It would be nice to allow precomputing stats/summaries/diagnostics for plot_xyz functions (when using PlotCollection directly changing the data allows that, which is what we use _within plot_xyz functions). One proposal would be something somewhat similar to #37, however, instead of splitting the behaviour on False or different, we could:

Note that this wouldn't only allow precomputing things but would also enable use of plot_xyz functions with arbitrary user defined functions such as experimental credible interval estimators, kdes from other libraries... provided the users themselves bridge the gap of making the data match the structure of the kind of plot they are calling.