Learn how to write the first part of an interpreter for the FOPPL. In particular learn how to manipulate Daphne compiler abstract syntax tree and graphical model outputs to sample from the prior, i.e. no conditioning (yet).
Note: This code base was developed on Python3.7
Clone Daphne directly into this repo:
git clone git@github.com:plai-group/daphne.git
(To use Daphne you will need to have both a JVM installed and Leiningen installed)
pip3 install -r requirements.txt
- Change the daphne path in
evaluation_based_sampling.py
and run:
python3 evaluation_based_sampling.py
- Change the daphne path in
graph_based_sampling.py
and run:
python3 evaluation_based_sampling.py