Description Usage Arguments Value Examples
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) |
random_seed |
Seed for random number generator |
sort_by |
Sort probability table by probability or support (enumeration only) |
chains |
Number of times to run the program (defaults to 1). |
cores |
Number of cores to use when running multiple chains (defaults to 1). |
The program's return value(s).
1 2 3 4 5 | ## Not run:
program_code <- "flip(0.5)"
webppl(program_code)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.