-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
109 additions
and
10 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
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,9 @@ | ||
# Advanced monty | ||
|
||
## Observers | ||
|
||
## Working with other packages | ||
|
||
Exporting chains to work with other packages | ||
|
||
## Nested models |
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 +1,24 @@ | ||
# Composability | ||
# Composability | ||
|
||
```{r} | ||
library(monty) | ||
``` | ||
|
||
```{r} | ||
# A simple example; a model that contains something of interest, | ||
# and a simple prior from monty_dsl | ||
likelihood <- monty_example("banana") | ||
prior <- monty_dsl({ | ||
alpha ~ Normal(0, 1) | ||
beta ~ Normal(0, 10) | ||
}) | ||
posterior <- likelihood + prior | ||
posterior | ||
# # The same thing, more explicitly: | ||
# monty_model_combine(likelihood, prior) | ||
# | ||
# # Control properties of the combined model: | ||
# monty_model_combine(likelihood, prior, | ||
# monty_model_properties(has_gradient = FALSE)) | ||
``` |
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 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,3 @@ | ||
# Runners | ||
|
||
One of the focus of `monty` is tailoring implementation to optimise usage of available hardware while ensuring reproducible results accross platforms. |
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,4 @@ | ||
# Samplers | ||
# Samplers and inference | ||
|
||
This vignette will describe the samplers available in monty. | ||
|
||
|