This repo contains code for reproducing the results in the paper Query Training: Learning a Worse Model to Infer Better Marginals in Undirected Graphical Models with Hidden Variables at the 35th AAAI Conference on Artificial Intelligence (AAAI 2021).
- Install miniconda (if not already installed)
- Set up the virtual environment
conda env create -f environment.yml
conda activate qt
python setup.py develop
- Download the data and point
BASE
inquery_training/__init__.py
to the data directory
The code was tested on Ubuntu 18.04 with CUDA 10.1.
Use the scripts in the scripts
folder to reproduce results in the paper.