Commit 05e9758
New chapter "Metropolis" with Python Implementation (#929)
* Add new chapter: metropolis_hastings; in python
* Add markdown and python files for metropolis
* Add image for metropolis
* Update .gitignore, SUMMARY.md, and metropolis
* Untrack .ipynb_checkpoints
* Untrack ipynb_checkpoints
* Fix algorithm steps list
* Really fix markdown list
* Add plot of P to chapter
* Add metropolis animation and update plot of P(x)
* Add minor update to chapter text
* Generate gif and mp4 for random walk
* Complete first draft!
* Final version before Pull Request
* Add metropolis citation
* Remove unnecessary lines from code and bib file
* Fix display of code in md
* Fix random walk capitalization.
* Apply Amaras' suggestions from code review
This commit makes minor edits which resolve conflicts with PEP8 and improve readability of code.
It also makes chapter sub-chapter of Monte Carlo.
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
Co-authored-by: Sammy Plat <amaras@vivaldi.net>
* Fix the code import lines in md file.
* Change to in metropolis.py
* Add probability section to metropolis.md
However, this is temporary, as this section needs to go into a separate chapter.
* Move Probability section in metropolis to own chapter.
* Fix SUMMARY.md spelling mistake from previous commit
* Add figures for probability distribution chapter
* Update image of normal distribution
* Finish first draft of probability chapter
* Minor edits to distributions.md.
* "Minor changes to distributions.md"
* Complete the Example/Application section of metropolis.
* Address most issues in review of PR#929
* Application sections created.
* g() definition moved up to a better place
* More discussion on g.
* Missing citations provided
* Clarity provided (hopefully)
* Add image of 1D_particles
* Update citations in md file
* Add testing function to metropolis python code.
Also modifies markdown to describe test.
Also adds citation for RMSD.
* Numpyfy metropolis f function and fix errors.
* Implement generator to iterate.
* Reformat output of test and nrmsd error reporting.
* Add description of video and fix code display.
* Update contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Put sentences in `metropolis.md` on separate lines.
* Put sentences in distributions.md chapter on separate lines.
* Addresses issues raised by Leios' 1st review of probability chapter.
* Adds intro to beginning.
* Fixes plurality of die.
* Clarifies some notation in discrete section.
* Removes explanation of calculus.
* Other minor edits.
* Add minor edits.
* Update contents/metropolis/metropolis.md title
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Simplify intro to contents/metropolis/metropolis.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Minor formatting to contents/metropolis/metropolis.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Fix spelling contents/metropolis/metropolis.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Simplify line 71 of contents/metropolis/metropolis.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update contents/metropolis/metropolis.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Update example application in metropolis according to Leios comments.
* Minor edit: contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Minor edit: contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Minor edit: contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Minor edit: contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Minor edit: contents/probability/distributions/distributions.md
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Apply minor suggestions from Leios' code review
Mostly typos, spelling, punctuation, and grammar.
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Add minor edits from code Leios' review
* Add minor edit
* Apply minor edit suggestions from Leios
Mostly punctuation and grammar.
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Add minor formatting, such as periods after equations.
* Fix integer interval notation using hack.
* Add minor edits missed previously in probability chapter.
* Add minor edits to metropolis, mostly punctuation.
* Apply minor edits from Leios
Mostly grammar and sentence structure.
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Add intro line to Algorithm section of metropolis.
* Add name to contributor.md
* Apply suggestions from Leios
* Minor edits for grammar and clarity.
* Applies to both metropolis and probablity chapters.
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
* Apply suggestions from code review
Co-authored-by: Shudipto <32040453+shudipto-amin@users.noreply.github.com>
Co-authored-by: Kazi Shudipto Amin <kazi.amin@ucalgary.ca>
Co-authored-by: James Schloss <jrs.schloss@gmail.com>
Co-authored-by: Sammy Plat <amaras@vivaldi.net>1 parent ffaa890 commit 05e9758
File tree
16 files changed
+692
-1
lines changed- contents
- metropolis
- code/python
- res
- probability/distributions
- res
16 files changed
+692
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
| 481 | + | |
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
Large diffs are not rendered by default.
Loading
Loading
Binary file not shown.
Loading
Binary file not shown.
0 commit comments