TRAINING MONITOR

Code, algorithms, languages, construction...
Post Reply
User avatar
deeds
Posts: 1011
Joined: Wed Oct 20, 2021 9:24 pm
Location: France
Contact:

TRAINING MONITOR

Post by deeds » Mon Aug 07, 2023 10:53 am

Private graphical tool to monitor engines training in real time, draw learning curves of openings, obtain engines and games statistics, etc.

Image

It just needs to select the PGN file to monitor then after each game it updates.
It draws different curves, manually or automatically (carousel mode).

Image

It shows engines/games statistics, estimated end of training, etc.

Image

rulleeeee
Posts: 46
Joined: Wed Aug 06, 2014 6:33 pm
Real Name: Grzesiek

Re: TRAINING MONITOR

Post by rulleeeee » Mon Aug 07, 2023 12:26 pm

Where can I download it?

Because I don't see it on github...

User avatar
deeds
Posts: 1011
Joined: Wed Oct 20, 2021 9:24 pm
Location: France
Contact:

Re: TRAINING MONITOR

Post by deeds » Mon Aug 07, 2023 1:47 pm

Hi Rulleeeee, it's normal because i already said :
deeds wrote:
Mon Aug 07, 2023 10:53 am
Private graphical tool...
But if you get a good score at our learning quiz (look at my website) :arrow: i'll send you a copy (link by PM at infinitychess) 8-)

rulleeeee
Posts: 46
Joined: Wed Aug 06, 2014 6:33 pm
Real Name: Grzesiek

Re: TRAINING MONITOR

Post by rulleeeee » Mon Aug 07, 2023 2:29 pm

Ah, I didn't read "private" :)

User avatar
deeds
Posts: 1011
Joined: Wed Oct 20, 2021 9:24 pm
Location: France
Contact:

Re: TRAINING MONITOR

Post by deeds » Tue Aug 08, 2023 6:48 am

When we train the engines on an opening, they will replay it hundreds/thousands of times.
Each time, they test different moves in order to learn the most effective ones.
The "First Novelty" curve represents the position where a new move was first tested.

Example with the "1.g4" opening :

Image

For its first game, so without experience data, Eman evaluated "7.Nf3" as its bestmove and got a draw.
For its second game, since it didn't win with "7.Nf3", Eman tried "7.Qc2" as its bestmove and it lost.

It's what we call "training mode" !

User avatar
deeds
Posts: 1011
Joined: Wed Oct 20, 2021 9:24 pm
Location: France
Contact:

Re: TRAINING MONITOR

Post by deeds » Tue Aug 08, 2023 7:12 am

If we use a database's tool like SCID, it looks like these 2 moves are very different :

Image

But if we look at the experience file, they are very close :

Image

In training mode (default settings), learning engines always seek to acquire new experience data, so they often try new moves, so they don't play the most efficient moves, so this mode isn't suitable for tourneys.

In tourney mode (experience book true or d.c.s tool or others), learning engines would have chosen "7.Nf3" until the engine's trainer updates the experience data (analyzes at greater depths, trains more games, etc.).

User avatar
deeds
Posts: 1011
Joined: Wed Oct 20, 2021 9:24 pm
Location: France
Contact:

Re: TRAINING MONITOR

Post by deeds » Tue Aug 08, 2023 11:05 am

This is what First Novelty's curves look like when engines learn drawish openings :

Eman experience vs Eman only (LS1)
Image
Here, Eman Experience trained with a sparring-partner having the same playing style and without learning feature (Eman only = read-only true, no exp file)


Eman experience vs BrainLearn (LS2)
Image
Here, Eman Experience trained with a sparring-partner having a different playing style and which can learn


Eman experience vs JudaS / HypnoS (LS4)
Image
Here, Eman Experience trained with 2 sparring-partners having different playing styles and which can learn


Eman experience vs JudaS / BrainLearn / HypnoS / Stockfish (LS7)
Image
Here, Eman Experience trained with 4 sparring-partners having diffrent playing styles and which can learn except Stockfish


Eman experience vs BrainLearn / HypnoS / ShashChess / Aurora (LS10)
Image
Here, Eman Experience trained with 4 sparring-partners having diffrent playing styles and which can learn
Here, the average time/move is longer (e.g. 5.1 sec/move) because the TC was 2m+2s (instead of 1m+1s for the 7 first learning sessions)


Common points :
- the average First Novelty is very close to the average moves/game so with only 2000 games, engines can almost learn 100% of some drawish openings
- tons of duplicated games even with different sparring-partners (=different playing styles)

User avatar
deeds
Posts: 1011
Joined: Wed Oct 20, 2021 9:24 pm
Location: France
Contact:

Re: TRAINING MONITOR

Post by deeds » Wed Aug 09, 2023 10:56 am

This is what First Novelty's curves look like when engines try to learn short openings (1 to 15 plies) :

1.g4 (LS2)
Image
32th / 148 moves/games = opening only learned at about 22%


1.f3 (LS4)
Image
27th / 140 moves/games = opening only learned at about 19%


1.e4 h5 (LS3)
Image
27th / 160 moves/games = opening only learned at about 17%


1.g4 d5 2.h3 (LS3)
Image
25th / 160 moves/games = opening only learned at about 15%


1.g4 d5 2.e3 (LS3)
Image
21th / 155 moves/games = opening only learned at about 14%


Common points :
- the First Novelty is very low so with only 2000 games, engines only learn about 25% of short openings (average based on 54 non-drawish openings)
- very few of duplicated games even with only 1 or 2 different sparring-partners (=different playing styles)

Tip: If your engine doesn't play better after training it on short openings, try to train it on "key" positions

User avatar
deeds
Posts: 1011
Joined: Wed Oct 20, 2021 9:24 pm
Location: France
Contact:

Re: TRAINING MONITOR

Post by deeds » Fri Aug 11, 2023 10:37 am

This is what First Novelty's curves look like when engines try to learn medium openings (16 to 31 plies) :

d41 h2h4 (ls04)
Image
64th / 174 moves/games = opening only learned at about 37%


e99 c4c5 (ls04)
Image
58th / 134 moves/games = opening only learned at about 43%


ls06 - e89 h2h3 (ls06)
Image
57th / 137 moves/games = opening only learned at about 42%


c11 c5c4 (ls07)
Image
54th / 141 moves/games = opening only learned at about 38%


b90 f8e7 (ls09)
Image
66th / 147 moves/games = opening only learned at about 45%


Common points :
- the First Novelty is > 50th but remember that the openings already contain until 31 plies
- with only 2000 games, engines only learn about 41% of medium openings (average based on 112 non-drawish openings)
- some duplicated games but it is attached to the openings and the playing style of sparring-partners

Tip : training 500 games is not always enough to get a positive elo's gain, try to train at least 1000 games (2000 games are recommended)

Post Reply