-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New docs #236
Merged
Merged
New docs #236
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f5283c0
new docs
reubenharry 8078fe5
new docs
reubenharry 1a627dc
new docs
reubenharry a8aa702
new docs
reubenharry 6df2148
new docs
reubenharry 6944f2a
new docs
reubenharry 09c82a5
new docs
reubenharry aa1710c
new docs
reubenharry dc42477
new docs
reubenharry 0a01007
remove old site
reubenharry f2e703b
remove old site
reubenharry 29fba0d
remove old site
reubenharry 5721f3d
remove old site
reubenharry 80f25aa
rearrange docs
reubenharry 445300d
fix
reubenharry 68812ae
fix website attempt
reubenharry 4d4e5ec
fix website attempt
reubenharry 2d14966
fix website attempt
reubenharry 1266a45
fix notebook dir
reubenharry 74cf89a
remove top level mkdocs.yml
reubenharry ed41148
remove top level mkdocs.yml
reubenharry 93c12f8
maintainers
reubenharry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change trigger to push on master and add cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't sure how to add cache, but added master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work:
Check out: https://gaseri.org/en/blog/2022-11-01-publishing-material-for-mkdocs-website-to-github-pages-using-custom-actions-workflow/