[pymc6 migration] Updated main documentation#1007
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
Caution Review failedFailed to post review comments. We encountered an issue with GitHub. Use ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (37)
💤 Files with no reviewable changes (1)
🧰 Additional context used📓 Path-based instructions (5)**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
tests/**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
.github/workflows/check_notebooks.yml📄 CodeRabbit inference engine (CLAUDE.md)
Files:
docs/changelog.md📄 CodeRabbit inference engine (CLAUDE.md)
Files:
pyproject.toml📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-06-17T23:10:29.060ZApplied to files:
📚 Learning: 2026-06-16T20:52:09.884ZApplied to files:
🪛 ast-grep (0.44.0)src/hssm/base.py[warning] 1479-1479: File path is request-/variable-derived; validate and normalize to prevent path traversal. (open-filename-from-request) 🪛 markdownlint-cli2 (0.22.1)docs/changelog.md[warning] 3-3: Heading levels should only increment by one level at a time (MD001, heading-increment) docs/index.md[warning] 154-154: Code block style (MD046, code-block-style) 📝 WalkthroughWalkthroughHSSM v0.4.0 replaces ChangesHSSM v0.4.0: xarray DataTree migration, PyPI packaging, Python 3.12+
Sequence DiagramssequenceDiagram
participant User
participant HSSMBase
participant PyMC
participant DataTree
participant PlottingModule
User->>HSSMBase: model.sample(draws, tune, ...)
HSSMBase->>PyMC: pm.sample(...)
PyMC-->>HSSMBase: raw InferenceData (internal)
HSSMBase->>DataTree: _clean_posterior_group(dt=...)
DataTree-->>HSSMBase: cleaned DataTree
HSSMBase-->>User: DataTree
User->>HSSMBase: model.log_likelihood(dt)
HSSMBase->>DataTree: read dt["posterior"] chain/draw
HSSMBase->>DataTree: assign dt["log_likelihood"]
DataTree-->>HSSMBase: updated DataTree
HSSMBase-->>User: DataTree
User->>HSSMBase: model.plot_predictive(dt=dt)
HSSMBase->>PlottingModule: plot_predictive(dt=dt)
PlottingModule->>DataTree: dt[predictive_group][response_str]
PlottingModule-->>User: Axes | FacetGrid
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts
Comment |
Mainly updated .md file and one tutorial (getting_started.ipynb)
Summary by CodeRabbit
Release Notes: HSSM v0.4.0
New Features
Breaking Changes
sample()now returnsxarray.DataTreeinstead ofarviz.InferenceData.vi()return type updated; returnsApproximationandDataTree.plot_trace()andsummary()convenience methods; use ArviZ directly.numba.Documentation
Chores