Coder Social home page Coder Social logo

flixpar / alphatsp Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 5.0 1.01 MB

AlphaGo inspired TSP Heuristic Solver

License: GNU General Public License v3.0

Python 16.01% Jupyter Notebook 80.18% C++ 3.71% Makefile 0.10%
tsp alphago-zero alphazero traveling-salesman-problem combinatorial-optimization mcts alphago alphagozero travelling-salesman-problem tsp-heuristic

alphatsp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alphatsp's Issues

Code is not working

Hi,

Just wanted to check whether this project is complete or not? It seems the code is incomplete and impossible to run (or is it?).

Results explanation

I wanted to ask you for some clarification on the results. I ran the code for ~72 hours on a core i7 with Geforce Nvidia 1070Ti and here is what I got as a result (I Ctrl+C after 72 hours). I have 2 specific questions:

  • What's the difference between Policy/Policy+MCTS? According to the Table 2 in the paper, I guess Policy+MCTS is the AlphaTSP, Greedy is the Nearest Neighbour. Am I right?
  • Why the exact solution differes in each iteration? It starts with 4.43 for the first testing phase and then goes up to 4.61 and then goes down again to 4.57. What's the difference between testing phases below?
  • I checked the GPU usage using nvtop in Ubuntu, and I can say it barely used GPU (<10% in average), even though the Pytorch had been correctly setup. I was expecting to see more GPU usage during the execution of the code. What do you think?

Thanks again for your interesting and useful contribution.

$ python3 main.py --experiment selfplay
Generating examples and training...
Testing...
Results:
Policy:		14.852219307851573
Policy+MCTS:	6.079631066890421
MCTS:		5.835310067268816
Greedy:		5.188520984973079
Exact:		4.436138053603336
Testing...
Results:
Policy:		15.904635022762267
Policy+MCTS:	6.510548698490385
MCTS:		6.243669944175507
Greedy:		5.4000203183930315
Exact:		4.616644095916955
Testing...
Results:
Policy:		15.679962777211916
Policy+MCTS:	6.082748741008646
MCTS:		6.199633294276332
Greedy:		5.606375414084934
Exact:		4.571680987924188

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.