Skip to content
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# pylint: disable=redefined-builtin,invalid-name
"""Sphinx configuration file."""

Expand Down
14 changes: 14 additions & 0 deletions docs/source/how_to/ConversionGuideCmdStanPy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# CmdStanPy Conversion Guide

ArviZ can convert CmdStanPy sampling results into the ArviZ data structure using `from_cmdstanpy`.

```python
import arviz_base as az
from cmdstanpy import CmdStanModel

model = CmdStanModel(stan_file="bernoulli.stan")
fit = model.sample({"N": 10, "y": [0, 1, 0, 0, 0, 0, 0, 0, 0, 1]})

idata = az.from_cmdstanpy(posterior=fit)
az.plot_trace_dist(idata)

13 changes: 13 additions & 0 deletions docs/source/how_to/ConversionGuideCmdStanPy.mdy
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CmdStanPy Conversion Guide

ArviZ can convert CmdStanPy sampling results into the ArviZ data structure using `from_cmdstanpy`.

```python
import arviz_base as az
from cmdstanpy import CmdStanModel

model = CmdStanModel(stan_file="bernoulli.stan")
fit = model.sample({"N": 10, "y": [0, 1, 0, 0, 0, 0, 0, 0, 0, 1]})

idata = az.from_cmdstanpy(posterior=fit)
az.plot_trace_dist(idata)
5 changes: 2 additions & 3 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,15 @@ where `<option>` can be one of:
* `test` (for developers)
* `doc` (for developers)


You can install multiple bundles of optional dependencies separating them with commas.
Thus, to install all user facing optional dependencies you should use `arviz-base[netcdf,zarr]`

:::{toctree}
:caption: Tutorials
:hidden:

tutorial/WorkingWithDataTree
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverse

tutorial/label_guide
how_to/ConversionGuideCmdStanPy
how_to/ConversionGuideEmcee
how_to/ConversionGuideNumPyro
ArviZ in Context <https://arviz-devs.github.io/EABM/>
Expand All @@ -85,4 +84,4 @@ api/index
BlueSky <https://bsky.app/profile/arviz.bsky.social>
Mastodon <https://bayes.club/@ArviZ>
GitHub repository <https://github.com/arviz-devs/arviz-base>
:::
:::
12 changes: 7 additions & 5 deletions docs/source/tutorial/WorkingWithDataTree.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -23,7 +23,9 @@
"import numpy as np\n",
"import xarray as xr\n",
"\n",
"xr.set_options(display_expand_data=False, display_expand_attrs=False);"
"xr.set_options(display_expand_data=False, display_expand_attrs=False)\n",
"\n",
"xr.set_options(display_expand_data=False, display_expand_attrs=False)"
]
},
{
Expand Down Expand Up @@ -19388,9 +19390,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python [conda env:base] *",
"language": "python",
"name": "python3"
"name": "conda-base-py"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -19402,7 +19404,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.13.9"
},
"varInspector": {
"cols": {
Expand Down
Loading