This repository contains the code to reproduce the experiments from "Discrete Neural Algorithmic Reasoning" paper.
Before running the source code, make sure to install the project dependencies:
pip install -r requirements.txt
- Breadth-first search
- Depth-first search
- Minimum spanning tree (Prim's algorithm)
- Maximum Independent Set (randomized)
- Shortest paths (Dijkstra's algorithm)
python train.py --config_path
python eval.py
You can find hints generation procedures for each algorithm in generate_data.py
.