This is the code repo for Unifying Deductive and Abductive Reasoning in Knowledge Graphs with Masked Diffusion Model
conda create -n dark python=3.9
conda activate dark
pip install -r requirements.txt
You can run the code in the following steps:
- Sampling
- Supervised training
- Reinforcement learning
bash scripts/sample/sample_full.sh
bash scripts/train/db.sh
or training with multi-gpu:
bash scripts/train/db-multi.sh
Example scripts:
bash scripts/optim/db.sh
Welcome to cite our work!