Skip to content

Commit

Permalink
Add MH and MALA MCMC examples (#251)
Browse files Browse the repository at this point in the history
* Adding emcee example

* add discussion

* Add notebook to toc

* reduce emcee samples

* merge emcee example into NUTS example

* update comments in mcmc example

* change cell tags

* add tags to all tutorials

* add mala example to MCMC notebook

* filename change

* collapse chains into overlap with different colors

* fix filenames
  • Loading branch information
ConnorStoneAstro authored Aug 31, 2024
1 parent 9246593 commit 902d1ef
Show file tree
Hide file tree
Showing 14 changed files with 613 additions and 292 deletions.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
emcee
ipywidgets
jupyter-book
matplotlib
Expand Down
3 changes: 1 addition & 2 deletions docs/source/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ chapters:
- file: tutorials/InvertLensEquation
- file: tutorials/Parameters
- file: tutorials/Simulators
- file: tutorials/Playground
- file: examples/index
sections:
- file: examples/Example_ImageFit_LM
- file: examples/Example_ImageFit_NUTS
- file: examples/Example_ImageFit_MCMC
- file: examples/Example_QSOLensFit
- file: contributing
- file: frequently_asked_questions
Expand Down
18 changes: 15 additions & 3 deletions docs/source/examples/Example_ImageFit_LM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@
"cell_type": "code",
"execution_count": null,
"id": "7",
"metadata": {},
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"# Generate the mock data\n",
Expand Down Expand Up @@ -242,7 +246,11 @@
"cell_type": "code",
"execution_count": null,
"id": "10",
"metadata": {},
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"print(best_fit, allparams)\n",
Expand Down Expand Up @@ -310,7 +318,11 @@
"cell_type": "code",
"execution_count": null,
"id": "14",
"metadata": {},
"metadata": {
"tags": [
"hide-cell"
]
},
"outputs": [],
"source": [
"def corner_plot_covariance(\n",
Expand Down
Loading

0 comments on commit 902d1ef

Please sign in to comment.