Skip to content

Commit 6c43ef4

Browse files
committed
docs: execute all tutorials and fix warnings.
1 parent 21067db commit 6c43ef4

17 files changed

+26906
-26599
lines changed

tutorials/00_getting_started_flexible.ipynb

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

tutorials/01_gaussian_amortized.ipynb

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

tutorials/02_multiround_inference.ipynb

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

tutorials/03_density_estimators.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@
3232
"cell_type": "code",
3333
"execution_count": 1,
3434
"metadata": {},
35-
"outputs": [],
35+
"outputs": [
36+
{
37+
"name": "stderr",
38+
"output_type": "stream",
39+
"text": [
40+
"WARNING (pytensor.tensor.blas): Using NumPy C-API based implementation for BLAS functions.\n"
41+
]
42+
}
43+
],
3644
"source": [
3745
"import torch\n",
3846
"\n",
@@ -154,7 +162,7 @@
154162
"name": "python",
155163
"nbconvert_exporter": "python",
156164
"pygments_lexer": "ipython3",
157-
"version": "3.12.0"
165+
"version": "3.12.4"
158166
}
159167
},
160168
"nbformat": 4,

tutorials/04_embedding_networks.ipynb

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

tutorials/05_conditional_distributions.ipynb

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

tutorials/06_restriction_estimator.ipynb

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

tutorials/07_sensitivity_analysis.ipynb

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

tutorials/08_crafting_summary_statistics.ipynb

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

tutorials/09_sampler_interface.ipynb

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@
2222
"execution_count": 1,
2323
"metadata": {},
2424
"outputs": [
25+
{
26+
"name": "stderr",
27+
"output_type": "stream",
28+
"text": [
29+
"WARNING (pytensor.tensor.blas): Using NumPy C-API based implementation for BLAS functions.\n"
30+
]
31+
},
2532
{
2633
"name": "stdout",
2734
"output_type": "stream",
2835
"text": [
29-
" Neural network successfully converged after 57 epochs."
36+
"\r",
37+
" Neural network successfully converged after 104 epochs."
3038
]
3139
}
3240
],
@@ -55,33 +63,9 @@
5563
},
5664
{
5765
"cell_type": "code",
58-
"execution_count": 2,
66+
"execution_count": null,
5967
"metadata": {},
60-
"outputs": [
61-
{
62-
"data": {
63-
"application/vnd.jupyter.widget-view+json": {
64-
"model_id": "3b9cbb3526ec457fadfd25ac301f0e5c",
65-
"version_major": 2,
66-
"version_minor": 0
67-
},
68-
"text/plain": [
69-
" 0%| | 0/2000 [00:00<?, ?it/s]"
70-
]
71-
},
72-
"metadata": {},
73-
"output_type": "display_data"
74-
},
75-
{
76-
"name": "stdout",
77-
"output_type": "stream",
78-
"text": [
79-
"\n",
80-
"Converged with loss: 5.17\n",
81-
"Quality Score: -0.116 \t Good: Smaller than 0.5 Bad: Larger than 1.0 \t NOTE: Less sensitive to mode collapse.\n"
82-
]
83-
}
84-
],
68+
"outputs": [],
8569
"source": [
8670
"# Sampling with MCMC\n",
8771
"sampling_algorithm = \"mcmc\"\n",
@@ -158,7 +142,7 @@
158142
{
159143
"data": {
160144
"application/vnd.jupyter.widget-view+json": {
161-
"model_id": "70b0cfdec1ba4afbbe5b42f7e4ff6d3a",
145+
"model_id": "",
162146
"version_major": 2,
163147
"version_minor": 0
164148
},
@@ -174,8 +158,8 @@
174158
"output_type": "stream",
175159
"text": [
176160
"\n",
177-
"Converged with loss: 5.18\n",
178-
"Quality Score: 0.104 \t Good: Smaller than 0.5 Bad: Larger than 1.0 \t NOTE: Less sensitive to mode collapse.\n"
161+
"Converged with loss: 3.11\n",
162+
"Quality Score: -0.029 \t Good: Smaller than 0.5 Bad: Larger than 1.0 \t NOTE: Less sensitive to mode collapse.\n"
179163
]
180164
}
181165
],
@@ -217,7 +201,7 @@
217201
"name": "stdout",
218202
"output_type": "stream",
219203
"text": [
220-
" Neural network successfully converged after 59 epochs."
204+
" Neural network successfully converged after 72 epochs."
221205
]
222206
}
223207
],
@@ -326,7 +310,7 @@
326310
"name": "stdout",
327311
"output_type": "stream",
328312
"text": [
329-
" Neural network successfully converged after 76 epochs."
313+
" Neural network successfully converged after 98 epochs."
330314
]
331315
}
332316
],
@@ -342,7 +326,7 @@
342326
],
343327
"metadata": {
344328
"kernelspec": {
345-
"display_name": "Python 3",
329+
"display_name": "Python 3 (ipykernel)",
346330
"language": "python",
347331
"name": "python3"
348332
},
@@ -356,7 +340,20 @@
356340
"name": "python",
357341
"nbconvert_exporter": "python",
358342
"pygments_lexer": "ipython3",
359-
"version": "3.12.0"
343+
"version": "3.12.4"
344+
},
345+
"toc": {
346+
"base_numbering": 1,
347+
"nav_menu": {},
348+
"number_sections": true,
349+
"sideBar": true,
350+
"skip_h1_title": false,
351+
"title_cell": "Table of Contents",
352+
"title_sidebar": "Contents",
353+
"toc_cell": false,
354+
"toc_position": {},
355+
"toc_section_display": true,
356+
"toc_window_display": false
360357
}
361358
},
362359
"nbformat": 4,

0 commit comments

Comments
 (0)