Runs a webppl program.
1 2 3 4 |
program_code |
A string of a webppl program. |
program_file |
A file containing a webppl program. |
data |
A data frame (or other serializable object) that can be referenced in the program. |
data_var |
A name by which data can be referenced in the program. |
packages |
A character vector of external package names to use. |
model_var |
The name by which the model be referenced in the program. |
inference_opts |
Options for inference (see http://webppl.readthedocs.io/en/master/inference.html) |
chains |
Number of chains (this run is one chain). |
random_seed |
Seed for random number generator |
sort_by |
Sort probability table by probability or support (enumeration only) |
chain |
Chain number of this run. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.