-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
2,287 additions
and
1,020 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 60 additions & 20 deletions
80
docs/example_notebooks/example_chains_convergence_test.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
349 changes: 187 additions & 162 deletions
349
docs/example_notebooks/example_non_gaussian_tension.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
604 changes: 325 additions & 279 deletions
604
docs/example_notebooks/example_posterior_profiles.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,16 +8,25 @@ | |
"\n", | ||
"Marco Raveri (<[email protected]>), Cyrille Doux (<[email protected]>), Shivam Pandey (<[email protected]>)\n", | ||
"\n", | ||
"In this notebook we show how to obtain posterior profiles from synthetic probability models, as in [Raveri, Doux and Pandey (2024), arXiv:XXXX.XXXX](https://arxiv.org/abs/XXXX.XXXXX).\n", | ||
"In this notebook we show how to obtain posterior profiles from synthetic probability models, as in [Raveri, Doux and Pandey (2024), arXiv:2409.09101](https://arxiv.org/abs/2409.09101).\n", | ||
"\n", | ||
"If you want more details on how to build normalizing flow based synthetic models for posterior distributions check out the corresponding example notebook." | ||
"If you want more details on how to build normalizing flow based synthetic models for posterior distributions check out the corresponding example notebook.\n", | ||
"\n", | ||
"### Table of contents\n", | ||
"1. [Notebook setup](#setup)\n", | ||
"2. [Flow training](#flows)\n", | ||
"3. [Posterior profiles](#profiles)\n", | ||
"4. [Profile accuracy](#accuracy)\n", | ||
"5. [Real world application](#real)\n", | ||
" 1. [Best constrained parameters profile](#best)\n", | ||
" 2. [Full profile triangle plot](#triangle)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Notebook setup:\n", | ||
"## Notebook setup: <a name=\"setup\"></a>\n", | ||
"\n", | ||
"We start by importing everything and setting up a controlled example:" | ||
] | ||
|
@@ -54,7 +63,7 @@ | |
"\n", | ||
"# import the tensiometer tools that we need:\n", | ||
"import tensiometer\n", | ||
"from tensiometer import utilities\n", | ||
"from tensiometer.utilities import stats_utilities as utilities\n", | ||
"from tensiometer.synthetic_probability import synthetic_probability as synprob\n", | ||
"\n", | ||
"# getdist settings to ensure consistency of plots:\n", | ||
|
@@ -152,7 +161,7 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Flow training:\n", | ||
"## Flow training: <a name=\"flows\"></a>\n", | ||
"\n", | ||
"We now train a synthetic probability model. Note that we need a flow with good local accuracy since we are going to maximize its value.\n", | ||
"\n", | ||
|
@@ -218,7 +227,7 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Posterior profile:\n", | ||
"## Posterior profile: <a name=\"profiles\"></a>\n", | ||
"\n", | ||
"We now want to calculate posterior profiles for our distribution. These are obtained maximizing over all parameters but the ones that are been considered.\n", | ||
"\n", | ||
|
@@ -355,7 +364,7 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Profile accuracy tests:\n", | ||
"## Profile accuracy tests: <a name=\"accuracy\"></a>\n", | ||
"\n", | ||
"The profiler calculation is hard. As you might have seen it requires hundreds or thousands of minimization instances. \n", | ||
"\n", | ||
|
@@ -455,7 +464,7 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Real world application: cosmological parameter profiles\n", | ||
"## Real world application: cosmological parameter profiles <a name=\"real\"></a>\n", | ||
"\n", | ||
"In this section we show a real example of a profile applied to cosmological parameter posteriors.\n", | ||
"\n", | ||
|
@@ -738,9 +747,10 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"### Best constrained parameters profiles\n", | ||
"### Best constrained parameters profiles <a name=\"best\"></a>\n", | ||
"\n", | ||
"As discussed in XXX projection effects arise because of either true non-Gaussianities of the likelihood or because of unconstrained parameter directions. This means that if we looked at the best constrained directions (that maximize prior to posterior gain, as discussed in arXiv:2112.05737) we have a chance of minimizing projection effects. \n", | ||
"As discussed in arXiv:2409.09101\n", | ||
" projection effects arise because of either true non-Gaussianities of the likelihood or because of unconstrained parameter directions. This means that if we looked at the best constrained directions (that maximize prior to posterior gain, as discussed in arXiv:2112.05737) we have a chance of minimizing projection effects. \n", | ||
"\n", | ||
"If you are interested in how to compute best constrained parameter combinations check out the corresponding notebook." | ||
] | ||
|
@@ -855,7 +865,7 @@ | |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"### Full profile triangle\n", | ||
"### Full profile triangle <a name=\"triangle\"></a>\n", | ||
"\n", | ||
"By now you probably want to look at a full profile triangle plot...\n", | ||
"\n", | ||
|
@@ -891,7 +901,7 @@ | |
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "mlg", | ||
"display_name": "tensiometer", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
|
@@ -905,7 +915,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.7" | ||
"version": "3.9.18" | ||
} | ||
}, | ||
"nbformat": 4, | ||
|
889 changes: 647 additions & 242 deletions
889
docs/example_notebooks/example_synthetic_probability.html
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.