-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new docs * new docs * new docs * new docs * new docs * new docs * new docs * new docs * new docs * remove old site * remove old site * remove old site * remove old site * rearrange docs * fix * fix website attempt * fix website attempt * fix website attempt * fix notebook dir * remove top level mkdocs.yml * remove top level mkdocs.yml * maintainers
- Loading branch information
1 parent
86ad8da
commit 110e040
Showing
99 changed files
with
219 additions
and
875 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: ci | ||
on: | ||
push: | ||
branches: | ||
- newdocs | ||
- master | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- run: pip install mkdocs-material | ||
# - run: mkdocs gh-deploy --force |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
src/data | ||
docs/site | ||
venv | ||
_cache | ||
docs/build | ||
|
This file was deleted.
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
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
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Example Gallery | ||
--- | ||
|
||
## [Histograms](/notebooks/Histogram.html) | ||
|
||
## [JSON (with `lens`)](/notebooks/Lenses.html) | ||
|
||
## [Diagrams](/notebooks/Diagrams.html) | ||
|
||
## [Probabilistic Parsing](/notebooks/Parsing.html) | ||
|
||
## [Streams (with `pipes`)](/notebooks/Streaming.html) | ||
|
||
## [Ising models](/notebooks/Ising.html) | ||
|
||
## [Physics](/notebooks/ClassicalPhysics.html) | ||
|
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Welcome to Monad-Bayes | ||
|
||
Monad-Bayes is a library for **probabilistic programming** written in **Haskell**. | ||
|
||
**Define distributions** [as programs](/notebooks/Introduction.html) | ||
|
||
**Perform inference** [with a variety of standard methods](tutorials.md) [defined compositionally](http://approximateinference.org/accepted/ScibiorGhahramani2016.pdf) | ||
|
||
**Integrate with Haskell code** [like this](examples.md) because Monad-Bayes is just a library, not a separate language | ||
|
||
## Example | ||
|
||
```haskell | ||
model :: Distribution Double | ||
model = do | ||
x <- bernoulli 0.5 | ||
normal (if x then (-3) else 3) 1 | ||
|
||
image :: Distribution Plot | ||
image = fmap (plot . histogram 200) (replicateM 100000 model) | ||
|
||
sampler image | ||
``` | ||
|
||
The program `model` is a mixture of Gaussians. Its type `Distribution Double` represents a distribution over reals. | ||
`image` is a program too: as its type shows, it is a distribution over plots. In particular, plots that arise from forming a 200 bin histogram out of 100000 independent identically distributed (iid) draws from `model`. | ||
To sample from `image`, we simply write `sampler image`, with the result shown below: | ||
|
||
|
||
<img src="images/plot.png" | ||
width="450" | ||
height="300" /> |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
window.MathJax = { | ||
tex: { | ||
inlineMath: [["\\(", "\\)"]], | ||
displayMath: [["\\[", "\\]"]], | ||
processEscapes: true, | ||
processEnvironments: true | ||
}, | ||
options: { | ||
ignoreHtmlClass: ".*|", | ||
processHtmlClass: "arithmatex" | ||
} | ||
}; | ||
|
||
document$.subscribe(() => { | ||
MathJax.typesetPromise() | ||
}) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: Tutorials | ||
--- | ||
|
||
## [Introduction to Monad-Bayes](/notebooks/Introduction.html) | ||
|
||
## [Sampling from a distribution](/notebooks/Sampling.html) | ||
|
||
## [Bayesian models](/notebooks/Bayesian.html) | ||
|
||
## [Markov Chain Monte Carlo](/notebooks/MCMC.html) | ||
|
||
## [Sequential Monte Carlo](/notebooks/SMC.html) | ||
|
||
## [Lazy Sampling](/notebooks/Lazy.html) | ||
|
||
## [Advanced Inference Methods](/notebooks/AdvancedSampling.html) | ||
|
||
<!-- ## [Advanced Inference Methods](../AdvancedSampling.html) | ||
## [Building your own inference methods]() --> |
Oops, something went wrong.