-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ESS Plot #58
Add ESS Plot #58
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
==========================================
+ Coverage 84.80% 85.73% +0.93%
==========================================
Files 21 22 +1
Lines 2336 2545 +209
==========================================
+ Hits 1981 2182 +201
- Misses 355 363 +8 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good so far
Fixed the docstring switch-up for type 'local' and 'quantile' and incorporated other suggestions including the x aesthetic addition for the 'model' dimension. I made a temporary addition to
The default x arg value generated for the second model is '1', which makes the data get severely skewed out of the original x axis range. Should we hardcode some smaller 'x' values with something like |
Updated x aesthetic mapping for multiple-model cases: The logic followed is as below. The x_diff is calculated, and currently one-third of that is taken as the range within which points of different models can be plotted.
Labelling, along the y axes ('ESS for small intervals' for kind='sample', 'ESS for quantiles' for type='quantile') and x axis ('quantile') has also been added |
Added rugplot to Like Also made a modification to the Plot output: |
To do: Apply |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go over plot_ess_evolution review first
Just made updates. This takes into account #66 and plots the mean, sd and min_ess as well using Annotating these lines is left as well as fixing an issue when the model dimension exists, where the output is like this: |
Plot_ess output is now like this: Each of 'mean', 'sd', and 'min_ess' has their own linestyle to distinguish between them. Maybe having another legend for them could be of help though as it might not be evident to a user which is which unless the the linestyle cycle and order of plotting is known by looking at the source code. The 'min_ess' line is set to gray by default and 'mean' and 'sd' to the first color in the color cycle by default. If the 'model' dim is present, then all three elements get the same color for a model. |
Rebased essplot commits |
Added new New Outputs: |
|
Fixed hypothesis test errors for ESS plot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very close to merging
…compute_ranks addition attempt
… plotting logic and modified hypothesis tests
Rebased the PR |
…ots in plots.rst and expanded max limit for test methods in testplots.py in .pylintrc
… pylint warning on testplots.py
now only waiting for us to figure out behaviour and scope in arviz-stats and xarray-einstats
Adding ESS plot (#5 )
Currently implemented for kind='local' only, using the new
scatter_xy
visual element function also added as part of this commit. The ess data ('y' values) obtained from the ess statistical computation via Arviz-Stats is combined with xdata ('x' values) generated vianp.linspace
(like the legacy ess plot in old Arviz does) after this xdata is broadcasted to fit the shape of the ess data. These are concatenated along a new plot_axis dimension (coords 'x' and 'y') which thescatter_xy
visual element function then splits and plots accordingly.Outputs:
azp.plot_ess(data)
azp.plot_ess(data, var_names=["mu", "tau"])
📚 Documentation preview 📚: https://arviz-plots--58.org.readthedocs.build/en/58/