- WebPPL (https://github.com/probmods/webppl) (to perform Bayesian Data Analysis)
- R/RStudio + relevant packages (to analyze and visualize BDA results)
webppl inference_scripts/binary_script.wppl --random-seed 1571250871 --require webppl-json --require './node_modules/mathjs'
webppl inference_scripts/tertiary_script.wppl --random-seed 1571250622 --require webppl-json --require './node_modules/mathjs'
webppl inference_scripts/quaternary_script.wppl --random-seed 1571251139 --require webppl-json --require './node_modules/mathjs'
webppl inference_scripts/quinary_script.wppl --random-seed 1571251077 --require webppl-json --require './node_modules/mathjs'
First, open analysis/analysis.r to generate the MAP estimates as .json objects (stored in analysis/inference_results). Then run:
webppl inference_scripts/binary_forward.wppl --random-seed 123 --require webppl-json
webppl inference_scripts/ternary_forward.wppl --random-seed 123 --require webppl-json
webppl inference_scripts/quaternary_forward.wppl --random-seed 123 --require webppl-json
webppl inference_scripts/quinary_forward.wppl --random-seed 123 --require webppl-json