Downloadable trained neural net for Go
-
John Tilley
- Dies with sente
- Posts: 83
- Joined: Tue Mar 01, 2016 2:28 pm
- Rank: now 1kyu-ish
- GD Posts: 0
- Has thanked: 6 times
- Been thanked: 65 times
Downloadable trained neural net for Go
There is a website that allows you to play Go against a deep neural network - all implemented in javascript. The website is powered by jgoboard and the ConvNetjs libraries.
Their trained downloadable neural net for Go is available, which might be of interest to some.It was trained on GoGoD games
"This neural net was trained to make moves similar to the moves made by professional players in a dataset of over 80,000 professional Go games."
https://chrisc36.github.io/deep-go/
Everything is written in javascript, runs in the browser and uses CPUs <not GPUs> - which keeps things simple.
The paper that describes all this was written by Amos Storkey (Edinburgh University) and Christopher Clark (Allen Institue for Artificial Intelligence) - presented in 2015 - on training Deep Convolutional Neural Networks to Play Go.
There is a good intro to Deep Learning on the ConvNetjs page
Their trained downloadable neural net for Go is available, which might be of interest to some.It was trained on GoGoD games
"This neural net was trained to make moves similar to the moves made by professional players in a dataset of over 80,000 professional Go games."
https://chrisc36.github.io/deep-go/
Everything is written in javascript, runs in the browser and uses CPUs <not GPUs> - which keeps things simple.
The paper that describes all this was written by Amos Storkey (Edinburgh University) and Christopher Clark (Allen Institue for Artificial Intelligence) - presented in 2015 - on training Deep Convolutional Neural Networks to Play Go.
There is a good intro to Deep Learning on the ConvNetjs page
-
Krama
- Lives in gote
- Posts: 436
- Joined: Mon Jan 06, 2014 3:46 am
- Rank: KGS 5 kyu
- GD Posts: 0
- Has thanked: 1 time
- Been thanked: 38 times
Re: Downloadable trained neural net for Go
If you implement these "shape" moves that this NN provides into MCTS so it doesn't pick random moves but moves suggested by NN you get something similar to Alphago?
-
uPWarrior
- Lives with ko
- Posts: 199
- Joined: Mon Jan 17, 2011 1:59 pm
- Rank: KGS 3 kyu
- GD Posts: 0
- Has thanked: 6 times
- Been thanked: 55 times
Re: Downloadable trained neural net for Go
You would be 2/3 of the way, you also need the value network.
(AlphaGo also used 2 distinct policy networks, one fast (less accurate) and one slow (more accurate).)
(AlphaGo also used 2 distinct policy networks, one fast (less accurate) and one slow (more accurate).)
-
Uberdude
- Judan
- Posts: 6727
- Joined: Thu Nov 24, 2011 11:35 am
- Rank: UK 4 dan
- GD Posts: 0
- KGS: Uberdude 4d
- OGS: Uberdude 7d
- Location: Cambridge, UK
- Has thanked: 436 times
- Been thanked: 3718 times
Re: Downloadable trained neural net for Go
Krama wrote:If you implement these "shape" moves that this NN provides into MCTS so it doesn't pick random moves but moves suggested by NN you get something similar to Alphago?
Nope, you would get something similar to the latest versions of Zen, Crazystone, Aya, etc which are MCTS bots which have recently added Neural Nets, or darkforest (from Facebook) which has always used neural nets.
uPWarrior wrote:You would be 2/3 of the way, you also need the value network.
It's worth adding that that missing third is the hardest and most innovative part of AlphaGo. There was this nice chart from the AlphaGo paper (Fan Hui version, it's gotten stronger since) showing the strengths using various combinations of the components:
-
macelee
- Lives in sente
- Posts: 928
- Joined: Mon Dec 31, 2012 1:46 pm
- Rank: 5 dan
- GD Posts: 0
- KGS: macelee
- Location: UK
- Has thanked: 72 times
- Been thanked: 480 times
- Contact:
Re: Downloadable trained neural net for Go
This program plays beautiful opening, definitely better than shodan level. It is rather weak in mid-game which is to be expected.
-
uPWarrior
- Lives with ko
- Posts: 199
- Joined: Mon Jan 17, 2011 1:59 pm
- Rank: KGS 3 kyu
- GD Posts: 0
- Has thanked: 6 times
- Been thanked: 55 times
Re: Downloadable trained neural net for Go
Uberdude wrote:It's worth adding that that missing third is the hardest and most innovative part of AlphaGo.
Definitely. I think it is not only the hardest to conceptually figure out how to obtain (the RL idea was great), but also the hardest to implement without proper hardware.
On the other hand, it requires the previous building blocks to be in place, so it is nice that there is an open source effort moving forward.
-
Mike Novack
- Lives in sente
- Posts: 1045
- Joined: Mon Aug 09, 2010 9:36 am
- GD Posts: 0
- Been thanked: 182 times
Re: Downloadable trained neural net for Go
Since people are probably interested in the development of a NN program that does not require much in the way of resources, we perhaps should be opening a thread to talk about Julie (which just appeared on the scene). OK, not a very strong player in the machine tournament. But it would be good if we had some information about how it might do against some of us not so strong humans. The reason is that it appears to be able to run fast on very modest hardware.
So yes it got beat by most the other programs there, but considering the minimal hardware and the minimal time it used, able to do what it did with more than two orders of magnitude less resources.
So yes it got beat by most the other programs there, but considering the minimal hardware and the minimal time it used, able to do what it did with more than two orders of magnitude less resources.
-
Pippen
- Lives in gote
- Posts: 677
- Joined: Thu Sep 16, 2010 3:34 pm
- GD Posts: 0
- KGS: 2d
- Has thanked: 6 times
- Been thanked: 31 times
Re: Downloadable trained neural net for Go
macelee wrote:This program plays beautiful opening, definitely better than shodan level. It is rather weak in mid-game which is to be expected.
I played it (with Black), won relatively easily and I estimate it at 1k-level. I think with a little bit of work (like how to pass or resign) this could become the best free-available bot. And with a little bit more work this could become the best free available 4-5d Bot.
- Attachments
-
- test.jpg (94.62 KiB) Viewed 14768 times
-
macelee
- Lives in sente
- Posts: 928
- Joined: Mon Dec 31, 2012 1:46 pm
- Rank: 5 dan
- GD Posts: 0
- KGS: macelee
- Location: UK
- Has thanked: 72 times
- Been thanked: 480 times
- Contact:
Re: Downloadable trained neural net for Go
Pippen wrote:macelee wrote:This program plays beautiful opening, definitely better than shodan level. It is rather weak in mid-game which is to be expected.
I played it (with Black), won relatively easily and I estimate it at 1k-level. I think with a little bit of work (like how to pass or resign) this could become the best free-available bot. And with a little bit more work this could become the best free available 4-5d Bot.
Agreed. Combine it with a reasonable 'score estimator' type of code so that it knows when to resign. Should be quite easy.
-
Krama
- Lives in gote
- Posts: 436
- Joined: Mon Jan 06, 2014 3:46 am
- Rank: KGS 5 kyu
- GD Posts: 0
- Has thanked: 1 time
- Been thanked: 38 times
Re: Downloadable trained neural net for Go
Pippen wrote:macelee wrote:This program plays beautiful opening, definitely better than shodan level. It is rather weak in mid-game which is to be expected.
I played it (with Black), won relatively easily and I estimate it at 1k-level. I think with a little bit of work (like how to pass or resign) this could become the best free-available bot. And with a little bit more work this could become the best free available 4-5d Bot.
Try to disable auto move and show analysis of the moves then play on your own against someone else and use the moves it suggests. However if it suggests a blunder type of move then you play a move you think is correct.
- Joaz Banbeck
- Judan
- Posts: 5546
- Joined: Sun Dec 06, 2009 11:30 am
- Rank: 1D AGA
- GD Posts: 1512
- Kaya handle: Test
- Location: Banbeck Vale
- Has thanked: 1080 times
- Been thanked: 1434 times
Re: Downloadable trained neural net for Go
macelee wrote:...It is rather weak in mid-game...
Exceptionally so. I tried playing it and after about 100 to 150 moves it starts giving away groups.
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207
-
bayu
- Lives with ko
- Posts: 163
- Joined: Wed Jul 20, 2011 11:33 am
- GD Posts: 0
- Has thanked: 19 times
- Been thanked: 32 times
Re: Downloadable trained neural net for Go
Very nice. I needed an undo in a corner. At the end though, it started to make pointless moves. And at some stage claimed that suicide isn't allowed (I think it tried to suicide itself) and switched colours. That's a fine tesuji, indeed. Is there a way to score or is this no-pass go?
If something sank it might be a treasure. And 2kyu advice is not necessarily Dan repertoire..
-
Uberdude
- Judan
- Posts: 6727
- Joined: Thu Nov 24, 2011 11:35 am
- Rank: UK 4 dan
- GD Posts: 0
- KGS: Uberdude 4d
- OGS: Uberdude 7d
- Location: Cambridge, UK
- Has thanked: 436 times
- Been thanked: 3718 times
Re: Downloadable trained neural net for Go
I started off with a common opening pattern of the fighting Chinese and it copied standard play for a while, but when I started a semeai in a corner it got confused and even after it was my 3 libs to its 2, it continued surrounding one of the outside groups (which was eyeless with about 7 libs but alive due to the semeai) whilst I proceeded to claim the rest of the board and win by loads. It also amusingly made the following local mistake (which some MCTS should fix):
-
GoEye2012
- Lives with ko
- Posts: 271
- Joined: Mon Oct 01, 2012 4:45 am
- Rank: IGS 7d
- GD Posts: 0
- IGS: goeye
- Location: Hong Kong
- Has thanked: 2 times
- Been thanked: 49 times
- Contact:
Re: Downloadable trained neural net for Go
Kill all stones of the AI in sente 
- Attachments
-
- Screen Shot 2016-04-12 at 11.25.53 PM.png (407.87 KiB) Viewed 14617 times
-
wauske
- Beginner
- Posts: 12
- Joined: Tue Apr 12, 2016 11:22 am
- Rank: 12k KGS or 15k DGS
- GD Posts: 0
- KGS: wauske
- DGS: wauske
- Online playing schedule: 20:00-22:00 CET
- Has thanked: 1 time
- Been thanked: 4 times
Re: Downloadable trained neural net for Go
Well, you guys are a lot stronger than I am so I have yet to win
Luckily I am a lot more tech-savvy than I am a Go player. I noticed that the site only offered the net.js as a download, not the other pre-requisite files. So, I downloaded them in their original format and zipped it. For those wanting to play with it offline or on their own (private) webspace, here is the download link: http://millsf.home.xs4all.nl/Deepgo.zip
This is a direct, 1-on-1 download of the page. All credit goes to its creator.
To use it: unzip it to any directory and open the index.html (Chrome or Edge work fine, IE11 doesn't). I also uploaded it to a private webserver which works too.
I'll also ask the owner for permission, should he decide not to grant it I'll remove the link right away.
Luckily I am a lot more tech-savvy than I am a Go player. I noticed that the site only offered the net.js as a download, not the other pre-requisite files. So, I downloaded them in their original format and zipped it. For those wanting to play with it offline or on their own (private) webspace, here is the download link: http://millsf.home.xs4all.nl/Deepgo.zip
This is a direct, 1-on-1 download of the page. All credit goes to its creator.
To use it: unzip it to any directory and open the index.html (Chrome or Edge work fine, IE11 doesn't). I also uploaded it to a private webserver which works too.
I'll also ask the owner for permission, should he decide not to grant it I'll remove the link right away.