This repository accompanies the paper "Embedding Symbolic Knowledge into Deep Networks" (NeurIPS 2019).
To replicate the experiments in the paper, clone and run with the NeurIPS2019 tag:
git clone -b NeurIPS2019 https://github.com/ZiweiXU/LENSR .
We have modified the code since then.
- Install Anaconda from [https://www.anaconda.com/]
- Install all required python packages:
conda env create -f environment.yml
- Change directory to scripts using
cd scripts
- Run
train_synthetic.sh
to preprocess the data and train the model.
- Change directory to scripts using
cd scripts
- Run
train_vrd.sh
to download and preprocess the data, and train the model.