You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/tutorial/WorkingWithDataTree.ipynb
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -13501,7 +13501,7 @@
13501
13501
"source": [
13502
13502
"We use \"posterior pushfoward quantities\" to refer to quantities that are not variables in the posterior but deterministic computations using posterior variables. \n",
13503
13503
"\n",
13504
-
"You can use xarray for these pushforward operations and store them as a new variable in the posterior group. You'll then be able to plot them with ArviZ functions, calculate stats and diagnostics on them (like the {func}`~arviz.mcse`) or save and share the inferencedata object with the pushforward quantities included. \n",
13504
+
"You can use xarray for these pushforward operations and store them as a new variable in the posterior group. You'll then be able to plot them with ArviZ functions, calculate stats and diagnostics on them (like the {func}`~arviz.mcse`) or save and share the `InferenceData` object with the pushforward quantities included. \n",
13505
13505
"\n",
13506
13506
"Compute the rolling mean of $\\log(\\tau)$ with {meth}`xarray.DataArray.rolling`, storing the result in the posterior"
13507
13507
]
@@ -13519,14 +13519,14 @@
13519
13519
"cell_type": "markdown",
13520
13520
"metadata": {},
13521
13521
"source": [
13522
-
"Using xarray for pushforward calculations has all the advantages of working with xarray. It also inherits the disadvantages of working with xarray, but we believe those to be outweighed by the advantages, and we have already shown how to extract the data as NumPy arrays. Working with InferenceData is working mainly with xarray objects and this is what is shown in this guide.\n",
13522
+
"Using xarray for pushforward calculations has all the advantages of working with xarray. It also inherits the disadvantages of working with xarray, but we believe those to be outweighed by the advantages, and we have already shown how to extract the data as NumPy arrays. Working with `InferenceData` is working mainly with xarray objects and this is what is shown in this guide.\n",
13523
13523
"\n",
13524
13524
"Some examples of these advantages are specifying operations with named dimensions instead of positional ones (as seen in some previous sections), \n",
13525
13525
"automatic alignment and broadcasting of arrays (as we'll see now),\n",
13526
13526
"or integration with Dask (as shown in the {ref}`dask_for_arviz` guide).\n",
13527
13527
"\n",
13528
13528
"In this cell you will compute pairwise differences between schools on their mean effects (variable `theta`).\n",
13529
-
"To do so, substract the variable theta after renaming the school dimension to the original variable. \n",
13529
+
"To do so, subtract the variable `theta` after renaming the school dimension to the original variable. \n",
13530
13530
"Xarray then aligns and broadcasts the two variables because they have different dimensions, and\n",
13531
13531
"the result is a 4d variable with all the pointwise differences.\n",
0 commit comments