Skip to content

Commit b7e3d40

Browse files
committed
Run core notebooks locally
1 parent 5e61495 commit b7e3d40

File tree

6 files changed

+1291
-1812
lines changed

6 files changed

+1291
-1812
lines changed

docs/source/learn/core_notebooks/GLM_linear.ipynb

Lines changed: 61 additions & 75 deletions
Large diffs are not rendered by default.

docs/source/learn/core_notebooks/dimensionality.ipynb

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@
499499
"output_type": "stream",
500500
"text": [
501501
"shape mismatch: objects cannot be broadcast to a single shape. Mismatch is between arg 0 with shape (3, 4) and arg 1 with shape (1, 3).\n",
502-
"Apply node that caused the error: normal_rv{\"(),()->()\"}(RNG(<Generator(PCG64) at 0x7F9A2DA91000>), [3 4], [[0 1 2]], [[1]])\n",
502+
"Apply node that caused the error: normal_rv{\"(),()->()\"}(RNG(<Generator(PCG64) at 0x7FB323BFA0A0>), [3 4], [[0 1 2]], [[1]])\n",
503503
"Toposort index: 0\n",
504504
"Inputs types: [RandomGeneratorType, TensorType(int64, shape=(2,)), TensorType(int64, shape=(1, 3)), TensorType(int8, shape=(1, 1))]\n",
505505
"Inputs shapes: ['No shapes', (2,), (1, 3), (1, 1)]\n",
506506
"Inputs strides: ['No strides', (8,), (24, 8), (1, 1)]\n",
507-
"Inputs values: [Generator(PCG64) at 0x7F9A2DA91000, array([3, 4]), array([[0, 1, 2]]), array([[1]], dtype=int8)]\n",
507+
"Inputs values: [Generator(PCG64) at 0x7FB323BFA0A0, array([3, 4]), array([[0, 1, 2]]), array([[1]], dtype=int8)]\n",
508508
"Outputs clients: [['output'], ['output']]\n",
509509
"\n",
510510
"HINT: Re-running with most PyTensor optimizations disabled could provide a back-trace showing when this node was created. This can be done by setting the PyTensor flag 'optimizer=fast_compile'. If that does not work, PyTensor optimizations can be disabled with 'optimizer=None'.\n",
@@ -1249,12 +1249,12 @@
12491249
"output_type": "stream",
12501250
"text": [
12511251
"operands could not be broadcast together with remapped shapes [original->remapped]: (1,2) and requested shape (2,4)\n",
1252-
"Apply node that caused the error: multinomial_rv{\"(),(p)->(p)\"}(RNG(<Generator(PCG64) at 0x7F9A2DA91C40>), [2 4], [[ 5 10]], [[[0.1 0.3 0.6]]])\n",
1252+
"Apply node that caused the error: multinomial_rv{\"(),(p)->(p)\"}(RNG(<Generator(PCG64) at 0x7FB323BF9460>), [2 4], [[ 5 10]], [[[0.1 0.3 0.6]]])\n",
12531253
"Toposort index: 0\n",
12541254
"Inputs types: [RandomGeneratorType, TensorType(int64, shape=(2,)), TensorType(int64, shape=(1, 2)), TensorType(float64, shape=(1, 1, 3))]\n",
12551255
"Inputs shapes: ['No shapes', (2,), (1, 2), (1, 1, 3)]\n",
12561256
"Inputs strides: ['No strides', (8,), (16, 8), (24, 24, 8)]\n",
1257-
"Inputs values: [Generator(PCG64) at 0x7F9A2DA91C40, array([2, 4]), array([[ 5, 10]]), array([[[0.1, 0.3, 0.6]]])]\n",
1257+
"Inputs values: [Generator(PCG64) at 0x7FB323BF9460, array([2, 4]), array([[ 5, 10]]), array([[[0.1, 0.3, 0.6]]])]\n",
12581258
"Outputs clients: [['output'], ['output']]\n",
12591259
"\n",
12601260
"HINT: Re-running with most PyTensor optimizations disabled could provide a back-trace showing when this node was created. This can be done by setting the PyTensor flag 'optimizer=fast_compile'. If that does not work, PyTensor optimizations can be disabled with 'optimizer=None'.\n",
@@ -1355,24 +1355,24 @@
13551355
"<path fill=\"none\" stroke=\"black\" d=\"M20,-8C20,-8 110,-8 110,-8 116,-8 122,-14 122,-20 122,-20 122,-242.25 122,-242.25 122,-248.25 116,-254.25 110,-254.25 110,-254.25 20,-254.25 20,-254.25 14,-254.25 8,-248.25 8,-242.25 8,-242.25 8,-20 8,-20 8,-14 14,-8 20,-8\"/>\n",
13561356
"<text text-anchor=\"middle\" x=\"109.5\" y=\"-15.95\" font-family=\"Times,serif\" font-size=\"14.00\">3</text>\n",
13571357
"</g>\n",
1358-
"<!-- x -->\n",
1359-
"<g id=\"node1\" class=\"node\">\n",
1360-
"<title>x</title>\n",
1361-
"<ellipse fill=\"none\" stroke=\"black\" cx=\"65\" cy=\"-204\" rx=\"48.97\" ry=\"42.25\"/>\n",
1362-
"<text text-anchor=\"middle\" x=\"65\" y=\"-216.57\" font-family=\"Times,serif\" font-size=\"14.00\">x</text>\n",
1363-
"<text text-anchor=\"middle\" x=\"65\" y=\"-199.32\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
1364-
"<text text-anchor=\"middle\" x=\"65\" y=\"-182.07\" font-family=\"Times,serif\" font-size=\"14.00\">Normal</text>\n",
1365-
"</g>\n",
13661358
"<!-- y -->\n",
1367-
"<g id=\"node2\" class=\"node\">\n",
1359+
"<g id=\"node1\" class=\"node\">\n",
13681360
"<title>y</title>\n",
13691361
"<ellipse fill=\"none\" stroke=\"black\" cx=\"65\" cy=\"-83.5\" rx=\"48.97\" ry=\"42.25\"/>\n",
13701362
"<text text-anchor=\"middle\" x=\"65\" y=\"-96.07\" font-family=\"Times,serif\" font-size=\"14.00\">y</text>\n",
13711363
"<text text-anchor=\"middle\" x=\"65\" y=\"-78.82\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
13721364
"<text text-anchor=\"middle\" x=\"65\" y=\"-61.57\" font-family=\"Times,serif\" font-size=\"14.00\">Normal</text>\n",
13731365
"</g>\n",
1366+
"<!-- x -->\n",
1367+
"<g id=\"node2\" class=\"node\">\n",
1368+
"<title>x</title>\n",
1369+
"<ellipse fill=\"none\" stroke=\"black\" cx=\"65\" cy=\"-204\" rx=\"48.97\" ry=\"42.25\"/>\n",
1370+
"<text text-anchor=\"middle\" x=\"65\" y=\"-216.57\" font-family=\"Times,serif\" font-size=\"14.00\">x</text>\n",
1371+
"<text text-anchor=\"middle\" x=\"65\" y=\"-199.32\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
1372+
"<text text-anchor=\"middle\" x=\"65\" y=\"-182.07\" font-family=\"Times,serif\" font-size=\"14.00\">Normal</text>\n",
1373+
"</g>\n",
13741374
"<!-- x&#45;&gt;y -->\n",
1375-
"<g id=\"edge1\" class=\"edge\">\n",
1375+
"<g id=\"edge2\" class=\"edge\">\n",
13761376
"<title>x&#45;&gt;y</title>\n",
13771377
"<path fill=\"none\" stroke=\"black\" d=\"M65,-161.55C65,-153.75 65,-145.49 65,-137.4\"/>\n",
13781378
"<polygon fill=\"black\" stroke=\"black\" points=\"68.5,-137.64 65,-127.64 61.5,-137.64 68.5,-137.64\"/>\n",
@@ -1386,7 +1386,7 @@
13861386
"<text text-anchor=\"middle\" x=\"202\" y=\"-182.07\" font-family=\"Times,serif\" font-size=\"14.00\">HalfNormal</text>\n",
13871387
"</g>\n",
13881388
"<!-- sigma&#45;&gt;y -->\n",
1389-
"<g id=\"edge2\" class=\"edge\">\n",
1389+
"<g id=\"edge1\" class=\"edge\">\n",
13901390
"<title>sigma&#45;&gt;y</title>\n",
13911391
"<path fill=\"none\" stroke=\"black\" d=\"M162.37,-168.72C145.12,-153.8 124.88,-136.3 107.34,-121.12\"/>\n",
13921392
"<polygon fill=\"black\" stroke=\"black\" points=\"109.96,-118.76 100.11,-114.87 105.39,-124.06 109.96,-118.76\"/>\n",
@@ -1395,7 +1395,7 @@
13951395
"</svg>\n"
13961396
],
13971397
"text/plain": [
1398-
"<graphviz.graphs.Digraph at 0x7f9a34337110>"
1398+
"<graphviz.graphs.Digraph at 0x7fb330ad16d0>"
13991399
]
14001400
},
14011401
"execution_count": 38,
@@ -1480,7 +1480,7 @@
14801480
"</svg>\n"
14811481
],
14821482
"text/plain": [
1483-
"<graphviz.graphs.Digraph at 0x7f9a255cb590>"
1483+
"<graphviz.graphs.Digraph at 0x7fb323bd5210>"
14841484
]
14851485
},
14861486
"execution_count": 39,
@@ -1554,7 +1554,7 @@
15541554
"</svg>\n"
15551555
],
15561556
"text/plain": [
1557-
"<graphviz.graphs.Digraph at 0x7f9a34342950>"
1557+
"<graphviz.graphs.Digraph at 0x7fb31b9632d0>"
15581558
]
15591559
},
15601560
"execution_count": 40,
@@ -1619,7 +1619,7 @@
16191619
"</svg>\n"
16201620
],
16211621
"text/plain": [
1622-
"<graphviz.graphs.Digraph at 0x7f9a2d972410>"
1622+
"<graphviz.graphs.Digraph at 0x7fb323b63890>"
16231623
]
16241624
},
16251625
"execution_count": 41,
@@ -1697,27 +1697,27 @@
16971697
"<text text-anchor=\"middle\" x=\"81\" y=\"-78.82\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
16981698
"<text text-anchor=\"middle\" x=\"81\" y=\"-61.57\" font-family=\"Times,serif\" font-size=\"14.00\">MvNormal</text>\n",
16991699
"</g>\n",
1700-
"<!-- matrix (explicit) -->\n",
1700+
"<!-- matrix (implicit) -->\n",
17011701
"<g id=\"node2\" class=\"node\">\n",
1702-
"<title>matrix (explicit)</title>\n",
1703-
"<ellipse fill=\"none\" stroke=\"black\" cx=\"468\" cy=\"-83.5\" rx=\"92.45\" ry=\"42.25\"/>\n",
1704-
"<text text-anchor=\"middle\" x=\"468\" y=\"-96.07\" font-family=\"Times,serif\" font-size=\"14.00\">matrix (explicit)</text>\n",
1705-
"<text text-anchor=\"middle\" x=\"468\" y=\"-78.82\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
1706-
"<text text-anchor=\"middle\" x=\"468\" y=\"-61.57\" font-family=\"Times,serif\" font-size=\"14.00\">MvNormal</text>\n",
1702+
"<title>matrix (implicit)</title>\n",
1703+
"<ellipse fill=\"none\" stroke=\"black\" cx=\"466\" cy=\"-83.5\" rx=\"93.51\" ry=\"42.25\"/>\n",
1704+
"<text text-anchor=\"middle\" x=\"466\" y=\"-96.07\" font-family=\"Times,serif\" font-size=\"14.00\">matrix (implicit)</text>\n",
1705+
"<text text-anchor=\"middle\" x=\"466\" y=\"-78.82\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
1706+
"<text text-anchor=\"middle\" x=\"466\" y=\"-61.57\" font-family=\"Times,serif\" font-size=\"14.00\">MvNormal</text>\n",
17071707
"</g>\n",
1708-
"<!-- matrix (implicit) -->\n",
1708+
"<!-- matrix (explicit) -->\n",
17091709
"<g id=\"node3\" class=\"node\">\n",
1710-
"<title>matrix (implicit)</title>\n",
1711-
"<ellipse fill=\"none\" stroke=\"black\" cx=\"264\" cy=\"-83.5\" rx=\"93.51\" ry=\"42.25\"/>\n",
1712-
"<text text-anchor=\"middle\" x=\"264\" y=\"-96.07\" font-family=\"Times,serif\" font-size=\"14.00\">matrix (implicit)</text>\n",
1713-
"<text text-anchor=\"middle\" x=\"264\" y=\"-78.82\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
1714-
"<text text-anchor=\"middle\" x=\"264\" y=\"-61.57\" font-family=\"Times,serif\" font-size=\"14.00\">MvNormal</text>\n",
1710+
"<title>matrix (explicit)</title>\n",
1711+
"<ellipse fill=\"none\" stroke=\"black\" cx=\"262\" cy=\"-83.5\" rx=\"92.45\" ry=\"42.25\"/>\n",
1712+
"<text text-anchor=\"middle\" x=\"262\" y=\"-96.07\" font-family=\"Times,serif\" font-size=\"14.00\">matrix (explicit)</text>\n",
1713+
"<text text-anchor=\"middle\" x=\"262\" y=\"-78.82\" font-family=\"Times,serif\" font-size=\"14.00\">~</text>\n",
1714+
"<text text-anchor=\"middle\" x=\"262\" y=\"-61.57\" font-family=\"Times,serif\" font-size=\"14.00\">MvNormal</text>\n",
17151715
"</g>\n",
17161716
"</g>\n",
17171717
"</svg>\n"
17181718
],
17191719
"text/plain": [
1720-
"<graphviz.graphs.Digraph at 0x7f9a2d969550>"
1720+
"<graphviz.graphs.Digraph at 0x7fb31b894210>"
17211721
]
17221722
},
17231723
"execution_count": 42,
@@ -1788,16 +1788,16 @@
17881788
"name": "stdout",
17891789
"output_type": "stream",
17901790
"text": [
1791-
"Last updated: Wed Jun 19 2024\n",
1791+
"Last updated: Tue Jun 25 2024\n",
17921792
"\n",
17931793
"Python implementation: CPython\n",
17941794
"Python version : 3.11.8\n",
17951795
"IPython version : 8.22.2\n",
17961796
"\n",
17971797
"pytensor: 2.20.0+3.g66439d283.dirty\n",
17981798
"\n",
1799-
"numpy : 1.26.4\n",
18001799
"pymc : 5.15.0+1.g58927d608\n",
1800+
"numpy : 1.26.4\n",
18011801
"pytensor: 2.20.0+3.g66439d283.dirty\n",
18021802
"\n",
18031803
"Watermark: 2.4.3\n",

docs/source/learn/core_notebooks/model_comparison.ipynb

Lines changed: 120 additions & 174 deletions
Large diffs are not rendered by default.

docs/source/learn/core_notebooks/posterior_predictive.ipynb

Lines changed: 530 additions & 953 deletions
Large diffs are not rendered by default.

docs/source/learn/core_notebooks/pymc_overview.ipynb

Lines changed: 479 additions & 509 deletions
Large diffs are not rendered by default.

docs/source/learn/core_notebooks/pymc_pytensor.ipynb

Lines changed: 67 additions & 67 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)