AB/NN Engine?

Discussion of anything and everything relating to chess playing software and machines.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
User avatar
Eduard
Posts: 243
Joined: Fri Oct 26, 2018 10:58 pm
Location: Germany
Full name: Eduard Nemeth
Contact:

AB/NN Engine?

Post by Eduard » Thu Feb 28, 2019 7:43 pm

Would not be more productive and better, to construct an AB engine that use a trained MCTS neural network (maybe like a Leelafish), but only from move ~16 to ~35?

For the first 15 moves I favore using a own opening book, and after move 35 I favore an AB search with endgame tablebases. For the middle game I could use different neural networks, according to the style (!) of the opening book used. Would not such an engine be fantastic?

peter
Posts: 1805
Joined: Sat Feb 16, 2008 6:38 am
Full name: Peter Martan

Re: AB/NN Engine?

Post by peter » Thu Feb 28, 2019 8:15 pm

Hi Eduard!
Eduard wrote:
Thu Feb 28, 2019 7:43 pm
Would not be more productive and better, to construct an AB engine that use a trained MCTS neural network (maybe like a Leelafish), but only from move ~16 to ~35?

For the first 15 moves I favore using a own opening book, and after move 35 I favore an AB search with endgame tablebases. For the middle game I could use different neural networks, according to the style (!) of the opening book used. Would not such an engine be fantastic?
Good idea too to me.

Another one: how about letting LC0 or an engine like this run on GPU together with SF or an engine like this on CPU and give the A-B-engine order by GUI or UCI- option of A-B-engine to add a second primary variant in MV- mode after LC0's choice, in case of disaggreement between the two engines?
Decision about move to choose comes from A-B-engine or from NN- engine as one of two possible settings, if LC0 being ordered to ponder about A-B-engine's different move, but I doubt NN-engines' ability of hash-learning compared to SF's one.

Of course in analysis mode I'd still prefer having both engines run by themselves and try Forward- Backward of moves of disagreement. Nucleus- like constructs could serve as game- playing engines too. Anybody tried this one with late LC0 and SF as slave and master?
Peter.

User avatar
Eduard
Posts: 243
Joined: Fri Oct 26, 2018 10:58 pm
Location: Germany
Full name: Eduard Nemeth
Contact:

Re: AB/NN Engine?

Post by Eduard » Thu Feb 28, 2019 8:35 pm

Dear Peter, your idea is good too. I know you are a correspondence chess player. In any case, it makes sense to use the CPU and the GPU in parallel. It gets the maximum out of the hardware! I love playing on playchess (with own opening books). An engine which got the maximum out of the hardware, is of course the best! The originality of an engine does not interest me.

Steppenwolf
Posts: 42
Joined: Thu Jan 31, 2019 3:54 pm
Full name: Sven Steppenwolf

Re: AB/NN Engine?

Post by Steppenwolf » Fri Mar 01, 2019 7:24 am

I also think this is a good idea to go foreward in the steps of LeelaFish.
Why not combine the best from both engines in one code: AB/Stockfish/CPU and NN/Lc0/GPU in one running simultansously?

Programmers requested! :D

User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 8:48 am

Re: AB/NN Engine?

Post by velmarin » Fri Mar 01, 2019 8:15 am

You can try ChessCombi, and see if the idea works

In readme:
**************If EnableSmartSwtiching is 0:****************
-> NumberOfEngine1Moves=VALUE
-> NumberOfEngine2Moves=VALUE
*VALUE is a number.
*The NumberOfEngine1Moves dictates how many moves Engine 1 can play before swtiching.
*The NumberOfEngine2Moves dictates how many moves Engine 2 can play before swtiching.
*Example: If NumberOfEngine1Moves is 10, and NumberOfEngine2Moves is 5.
*Engine1 plays for 10 moves, then switches to Engine2. Engine2 plays for 5 moves, then switches back to Engine1.

****************************END****************************

User avatar
Eduard
Posts: 243
Joined: Fri Oct 26, 2018 10:58 pm
Location: Germany
Full name: Eduard Nemeth
Contact:

Re: AB/NN Engine?

Post by Eduard » Fri Mar 01, 2019 12:39 pm

Good idea, thank you! Runs this under a Fritz GUI?

I found this two links

https://chesscombiengine.blogspot.com/2 ... s.html?m=1

https://chesscombiengine.blogspot.com/2 ... t.html?m=1

I like to test it. Where can be downloaded a current version v4?

User avatar
Eduard
Posts: 243
Joined: Fri Oct 26, 2018 10:58 pm
Location: Germany
Full name: Eduard Nemeth
Contact:

Re: AB/NN Engine?

Post by Eduard » Fri Mar 01, 2019 3:33 pm

I downloaded V1 and tested it, it works fine under Fritz 15. Now I only need a good GPU. Then I can combine Stockfish with Lc0 as I like it. And with full power. Cool thing, keep it up.

User avatar
Eduard
Posts: 243
Joined: Fri Oct 26, 2018 10:58 pm
Location: Germany
Full name: Eduard Nemeth
Contact:

Re: AB/NN Engine?

Post by Eduard » Fri Mar 01, 2019 4:12 pm

Here is a link to a previous posting with download link. Sorry, I only found the message now.
viewtopic.php?t=69135

Steppenwolf
Posts: 42
Joined: Thu Jan 31, 2019 3:54 pm
Full name: Sven Steppenwolf

Re: AB/NN Engine?

Post by Steppenwolf » Fri Mar 01, 2019 4:36 pm

Great Idea.
Is it possible to make this also available for macOS Mojave?

User avatar
Eduard
Posts: 243
Joined: Fri Oct 26, 2018 10:58 pm
Location: Germany
Full name: Eduard Nemeth
Contact:

Re: AB/NN Engine?

Post by Eduard » Fri Mar 01, 2019 7:48 pm

A suggestion to the developer of ChessCombi: It would be good to see (maybe in the display?) when calculating engine A or engine B.

Post Reply