Skip to content
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

Notebooks: MCMC.ipynb #223

Merged
merged 4 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
356 changes: 209 additions & 147 deletions monad-bayes-site/MCMC.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions notebooks/plotting.hs
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,9 @@ instance Plottable [(T.Text, Double)] where
instance Plottable [(Double, Double)] where
plot ls = vlShow $ hist $ unzip ls

instance Plottable ([Double], [Double]) where
plot (xs, ys) =
vlShow $
scatterplot ((xs, ys), replicate (length xs) 1) (color []) Numbers Line

type Plot = VegaLiteLab
Loading