All Projects → qiang-ma → Graph Pointer Network

qiang-ma / Graph Pointer Network

Projects that are alternatives of or similar to Graph Pointer Network

Tulingxueyuan
python笔记
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Telepyth
Telegram notification with IPython magics.
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Emotion Detector
A python code to detect emotions from text
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Cometts
Comet Time Series Toolset for working with a time-series of remote sensing imagery and user defined polygons
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Deep3d
Automatic 2D-to-3D Video Conversion with CNNs
Stars: ✭ 1,075 (+1854.55%)
Mutual labels:  jupyter-notebook
Pythonprojects
A Portfolio of Python Projects
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Danet
Deep Attractor Network (DANet) for single-channel speech separation
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Ipython Notebooks
Some iPython Notebooks I have created for personal learning
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Pythondataanalysis
The data and code that used in my book.
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Blog
Read and Write
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Ct lung segmentation
Robust segmentation of lung and airway in CT scans
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Mish
Official Repsoitory for "Mish: A Self Regularized Non-Monotonic Neural Activation Function" [BMVC 2020]
Stars: ✭ 1,072 (+1849.09%)
Mutual labels:  jupyter-notebook
Very Deep Convolutional Networks For Natural Language Processing In Tensorflow
implement the paper" Very Deep Convolutional Networks for Natural Language Processing"(https://arxiv.org/abs/1606.01781 ) in tensorflow
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Ga in python
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Github Paper
Plos in Computational Biology paper related with github for researchers, code, source and document
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Style Transfer Colab
Google Colab Notebook for Image and Video Style Transfer Using TensorFlow
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Ds Python Data Analysis
Data manipulation, analysis and visualisation in Python - specialist course Doctoral schools of Ghent University
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Vietnamese Electra
Electra pre-trained model using Vietnamese corpus
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook
Whitehat
Information about my experiences on ethical hacking 💀
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Modernai
Materials for Modern AI Course / Cloud Day 2.0
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook

Combinatorial Optimization by Graph Pointer Networks and Hierarchical Reinforcement Learning

Qiang Ma, Suwen Ge, Danyang He, Darshan Thaker, Iddo Drori

In AAAI Workshop on Deep Learning on Graphs: Methodologies and Applications, 2020. Arxiv

Dependencies

Python>=3.6

PyTorch=1.1

Baselines

Code for running baselines.

Small-Scale TSP

Code, data, and model for small-scale travelling salesman problem (TSP). To train the model, please run train.py via

python train.py --size=X --epoch=X --batch_size=X --train_size=X --val_size=X --lr=X

Here the parameter --size is the size of TSP instance, and --lr is the learning rate. To test the model with data generated on the fly, please run test_random.py via

python test_random.py --size=X --batch_size=X --test_size=X --test_steps=X

To test the model with heldout TSP data, please run test.py via

python test.py --size=X

Larger-Scale TSP

We train the model with small instances and use the model to predict the routes for larger scale TSP, i.e. TSP250/500. Please run the ipython notebook.

TSPTW

In this experiment, we use hierarchical reinforcement learning to tackle TSP with Time Window (TSPTW). To train hierarchical model, please first train the lower model by

python tsptw_low.py

Then train higher model by

python tsptw_high.py

To train non-hierarchical model, use

python tsptw_non_hier.py

To test hierarchical model using greedy method, use

python test_hier.py

To test hierarchical model using sampling method, use

python test_hier_sampling.py

To test non-hierarchical model, use

python test.py

Citation

If you use this code for your research, please cite our papers.

@InProceedings{ma2019combinatorial,
  author    = {Ma, Qiang and Ge, Suwen and He, Danyang and Thaker, Darshan and Drori, Iddo},
  title     = {Combinatorial Optimization by Graph Pointer Networks and Hierarchical Reinforcement Learning},
  booktitle = {AAAI Workshop on Deep Learning on Graphs: Methodologies and Applications},
  year      = {2020},
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].