Skip to content

Commit

Permalink
docs: execute all tutorials and fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
janfb committed Aug 23, 2024
1 parent cd10932 commit 5584f13
Show file tree
Hide file tree
Showing 17 changed files with 26,906 additions and 26,599 deletions.
63 changes: 33 additions & 30 deletions tutorials/00_getting_started_flexible.ipynb

Large diffs are not rendered by default.

26 changes: 17 additions & 9 deletions tutorials/01_gaussian_amortized.ipynb

Large diffs are not rendered by default.

44 changes: 26 additions & 18 deletions tutorials/02_multiround_inference.ipynb

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions tutorials/03_density_estimators.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING (pytensor.tensor.blas): Using NumPy C-API based implementation for BLAS functions.\n"
]
}
],
"source": [
"import torch\n",
"\n",
Expand Down Expand Up @@ -154,7 +162,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
47 changes: 28 additions & 19 deletions tutorials/04_embedding_networks.ipynb

Large diffs are not rendered by default.

51,693 changes: 25,888 additions & 25,805 deletions tutorials/05_conditional_distributions.ipynb

Large diffs are not rendered by default.

89 changes: 55 additions & 34 deletions tutorials/06_restriction_estimator.ipynb

Large diffs are not rendered by default.

71 changes: 46 additions & 25 deletions tutorials/07_sensitivity_analysis.ipynb

Large diffs are not rendered by default.

277 changes: 52 additions & 225 deletions tutorials/08_crafting_summary_statistics.ipynb

Large diffs are not rendered by default.

65 changes: 31 additions & 34 deletions tutorials/09_sampler_interface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,19 @@
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING (pytensor.tensor.blas): Using NumPy C-API based implementation for BLAS functions.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" Neural network successfully converged after 57 epochs."
"\r",
" Neural network successfully converged after 104 epochs."
]
}
],
Expand Down Expand Up @@ -55,33 +63,9 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3b9cbb3526ec457fadfd25ac301f0e5c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
" 0%| | 0/2000 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Converged with loss: 5.17\n",
"Quality Score: -0.116 \t Good: Smaller than 0.5 Bad: Larger than 1.0 \t NOTE: Less sensitive to mode collapse.\n"
]
}
],
"outputs": [],
"source": [
"# Sampling with MCMC\n",
"sampling_algorithm = \"mcmc\"\n",
Expand Down Expand Up @@ -158,7 +142,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "70b0cfdec1ba4afbbe5b42f7e4ff6d3a",
"model_id": "",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -174,8 +158,8 @@
"output_type": "stream",
"text": [
"\n",
"Converged with loss: 5.18\n",
"Quality Score: 0.104 \t Good: Smaller than 0.5 Bad: Larger than 1.0 \t NOTE: Less sensitive to mode collapse.\n"
"Converged with loss: 3.11\n",
"Quality Score: -0.029 \t Good: Smaller than 0.5 Bad: Larger than 1.0 \t NOTE: Less sensitive to mode collapse.\n"
]
}
],
Expand Down Expand Up @@ -217,7 +201,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
" Neural network successfully converged after 59 epochs."
" Neural network successfully converged after 72 epochs."
]
}
],
Expand Down Expand Up @@ -326,7 +310,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
" Neural network successfully converged after 76 epochs."
" Neural network successfully converged after 98 epochs."
]
}
],
Expand All @@ -342,7 +326,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -356,7 +340,20 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.12.4"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
}
},
"nbformat": 4,
Expand Down
79 changes: 58 additions & 21 deletions tutorials/10_diagnostics_posterior_predictive_checks.ipynb

Large diffs are not rendered by default.

97 changes: 35 additions & 62 deletions tutorials/11_diagnostics_simulation_based_calibration.ipynb

Large diffs are not rendered by default.

245 changes: 69 additions & 176 deletions tutorials/12_iid_data_and_permutation_invariant_embeddings.ipynb

Large diffs are not rendered by default.

58 changes: 41 additions & 17 deletions tutorials/13_diagnostics_lc2st.ipynb

Large diffs are not rendered by default.

134 changes: 58 additions & 76 deletions tutorials/14_mcmc_diagnostics_with_arviz.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 5584f13

Please sign in to comment.