Skip to content

Commit a634b72

Browse files
authored
DOC: Correct a few formatting issues in Working with Data Tree (#112)
1 parent 4f57548 commit a634b72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/tutorial/WorkingWithDataTree.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13501,7 +13501,7 @@
1350113501
"source": [
1350213502
"We use \"posterior pushfoward quantities\" to refer to quantities that are not variables in the posterior but deterministic computations using posterior variables. \n",
1350313503
"\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",
1350513505
"\n",
1350613506
"Compute the rolling mean of $\\log(\\tau)$ with {meth}`xarray.DataArray.rolling`, storing the result in the posterior"
1350713507
]
@@ -13519,14 +13519,14 @@
1351913519
"cell_type": "markdown",
1352013520
"metadata": {},
1352113521
"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",
1352313523
"\n",
1352413524
"Some examples of these advantages are specifying operations with named dimensions instead of positional ones (as seen in some previous sections), \n",
1352513525
"automatic alignment and broadcasting of arrays (as we'll see now),\n",
1352613526
"or integration with Dask (as shown in the {ref}`dask_for_arviz` guide).\n",
1352713527
"\n",
1352813528
"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",
1353013530
"Xarray then aligns and broadcasts the two variables because they have different dimensions, and\n",
1353113531
"the result is a 4d variable with all the pointwise differences.\n",
1353213532
"\n",

0 commit comments

Comments
 (0)