Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
plot_rank
function has been migrated and refactored to align with the modularized structure of ArviZ-Plots. This function is a key diagnostic tool for MCMC convergence, helping visualize how well chains mix by plotting the ranks of posterior draws.Key Improvements & Refactoring Details
🔹 Data Handling:
(chain, draw)
, ensuring robust handling of various input shapes.🔹 Plot Structure:
🔹 Visualization Options:
Supports two plotting styles:
🔹 Modularization & Maintainability:
plot_variable
,compute_ranks
, etc.), making future modifications easier.🔹 Error Handling & Flexibility:
var_names
and incorrect input shapes."school"
) is more intuitive and explicit.I've started working on refactoring the missing features from ArviZ-Plots and ensuring
plot_rank
fully aligns with the expected functionality.I'd love guidance on what can be improved, any missing edge cases, and potential optimizations to further refine the implementation.
Looking forward to your feedback!
📚 Documentation preview 📚: https://arviz-plots--143.org.readthedocs.build/en/143/