Skip to content

klima7/Reversi-WANN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reversi-WANN

Overview

Reinforcement Learning in Reversi game with Weight Agnostic Neural Network.

Based on article weightagnostic.github.io and my other repository Reversi-RL.

Running

Training

python wann_train.py -p p/reversi_5_4.json -n 8

Testing

python wann_test.py -p p/reversi_5_4.json -r 1000 -i champions/reversi_5_4.out -v True

Results

Fitness may be interpreted as accuracy

Reversi 5x4

[***]   Fitness:          [0.48 0.45 0.46 0.8  0.77 0.75]
[***]   Weight Values:    [-2.  -1.  -0.5  0.5  1.   2. ]

Reversi_5_4

Reversi 5x5

[***]   Fitness:         [0.58 0.56 0.55 0.4  0.43 0.43] 
[***]   Weight Values:   [-2.  -1.  -0.5  0.5  1.   2. ]

Reversi_5_5

Reversi 8x8

[***]   Fitness:          [0.51 0.49 0.49 0.55 0.54 0.54] 
[***]   Weight Values:    [-2.  -1.  -0.5  0.5  1.   2. ]

Reversi_8_8