To install and use the models in WebPPL, the following packages have been provided:
- phywppl main package containing the models (implemented in WebPPL)
- phyjs dependency package with shared library functions (implemented in JavaScript)
An npm package phywppl
has been provided. To install it:
- Download and install Node, if it has not been installed already.
- Download and install WebPPL, if it has not been installed already.
- Download this repository (see above), if it has not been downloaded already.
- Change to the
phywppl/phywppl
package directory:
cd phywppl/phywppl
- Install dependency packages
phyjs
(local) andshelljs
:
npm install ../phyjs
npm install shelljs
Now, all WebPPL programs from the paper can be run from the shell with the tools that are found in the repository. Consult the phywppl README for instructions.