First working implementation of ANN which is trained using GameResults.
The PassFilter simply outputs BlackWins and WhiteWins (Range 0 - 1 but not presently clamped). In principle, this type of feedforward ANN can be used to decide whether a PASS will result in blackwins or whitewins at any stage. The goal is for the network to learn that passing while losing when valid moves exist is bad, but passing while winning is relatively harmless later in the game.
This commit is contained in:
13
data/SGF.g
13
data/SGF.g
@@ -139,7 +139,7 @@ blackRank
|
||||
whiteRank
|
||||
: 'WR';
|
||||
|
||||
komi : 'KM';
|
||||
komi : 'KM' | 'KoMi';
|
||||
|
||||
result : 'RE'
|
||||
| 'REsult'
|
||||
@@ -169,7 +169,7 @@ copyright
|
||||
|
||||
username: 'US';
|
||||
|
||||
comment : 'C';
|
||||
comment : 'C' | 'Comment';
|
||||
|
||||
strValue
|
||||
: (STRVALUE)+;
|
||||
@@ -190,11 +190,14 @@ PLUS : '+';
|
||||
|
||||
SLASH : '/';
|
||||
|
||||
|
||||
STRVALUE : (UCLETTER | LCLETTER | MINUS | DIGIT | SPACE | PERIOD | COMMA | PLUS | SLASH | COLON )+;
|
||||
|
||||
LPAREN : '(' ;
|
||||
|
||||
RPAREN : ')';
|
||||
|
||||
STRVALUE : (UCLETTER | LCLETTER | MINUS | DIGIT | SPACE | PERIOD | COMMA | PLUS | SLASH | COLON | LPAREN | RPAREN )+;
|
||||
|
||||
|
||||
SEMICOLON : ';' ;
|
||||
|
||||
fragment UCLETTER : 'A'..'Z';
|
||||
@@ -206,8 +209,6 @@ LBRACKET
|
||||
|
||||
RBRACKET
|
||||
: ']';
|
||||
|
||||
RPAREN : ')';
|
||||
|
||||
//CR : '\r'{$channel=HIDDEN;};
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ DaTe[1968]
|
||||
PlaCe[]
|
||||
|
||||
|
||||
REsult[Black wins by four points]
|
||||
REsult[B+4]
|
||||
|
||||
|
||||
C[This was the second and last game in a two game match on 9x9,
|
||||
|
||||
@@ -13,7 +13,7 @@ VieW[]
|
||||
SiZe[9]
|
||||
|
||||
|
||||
KoMi[5 1/2]
|
||||
KoMi[5.5]
|
||||
|
||||
|
||||
EVent[TV game]
|
||||
@@ -31,7 +31,7 @@ DaTe[1992]
|
||||
PlaCe[Osaka]
|
||||
|
||||
|
||||
REsult[White wins by 11 1/2]
|
||||
REsult[W+11.5]
|
||||
|
||||
|
||||
Comment[
|
||||
|
||||
@@ -13,7 +13,7 @@ VieW[]
|
||||
SiZe[9]
|
||||
|
||||
|
||||
KoMi[5 1/2]
|
||||
KoMi[5.5]
|
||||
|
||||
|
||||
EVent[TV game]
|
||||
@@ -31,7 +31,7 @@ DaTe[1992]
|
||||
PlaCe[Osaka]
|
||||
|
||||
|
||||
REsult[Black wins by 1/2 point]
|
||||
REsult[B+0.5]
|
||||
|
||||
|
||||
Comment[
|
||||
|
||||
@@ -13,7 +13,7 @@ VieW[]
|
||||
SiZe[9]
|
||||
|
||||
|
||||
KoMi[5 1/2]
|
||||
KoMi[5.5]
|
||||
|
||||
|
||||
EVent[TV game]
|
||||
@@ -31,7 +31,7 @@ DaTe[1992]
|
||||
PlaCe[Osaka]
|
||||
|
||||
|
||||
REsult[White wins by 4 1/2]
|
||||
REsult[W+4.5]
|
||||
|
||||
|
||||
Comment[
|
||||
|
||||
@@ -13,7 +13,7 @@ VieW[]
|
||||
SiZe[9]
|
||||
|
||||
|
||||
KoMi[5 1/2]
|
||||
KoMi[5.5]
|
||||
|
||||
|
||||
EVent[TV game]
|
||||
@@ -31,7 +31,7 @@ DaTe[1992]
|
||||
PlaCe[Osaka]
|
||||
|
||||
|
||||
REsult[Black wins by 1/2]
|
||||
REsult[B+0.5]
|
||||
|
||||
|
||||
Comment[
|
||||
|
||||
@@ -13,7 +13,7 @@ VieW[]
|
||||
SiZe[9]
|
||||
|
||||
|
||||
KoMi[5 1/2]
|
||||
KoMi[5.5]
|
||||
|
||||
|
||||
EVent[TV game]
|
||||
@@ -31,7 +31,7 @@ DaTe[1992]
|
||||
PlaCe[Osaka]
|
||||
|
||||
|
||||
REsult[Black wins by 5 1/2]
|
||||
REsult[B+5.5]
|
||||
|
||||
|
||||
Comment[
|
||||
|
||||
@@ -13,7 +13,7 @@ VieW[]
|
||||
SiZe[9]
|
||||
|
||||
|
||||
KoMi[5 1/2]
|
||||
KoMi[5.5]
|
||||
|
||||
|
||||
EVent[TV game]
|
||||
@@ -31,7 +31,7 @@ DaTe[1992]
|
||||
PlaCe[Osaka]
|
||||
|
||||
|
||||
REsult[White wins by 3 1/2]
|
||||
REsult[W+3.5]
|
||||
|
||||
|
||||
Comment[
|
||||
|
||||
@@ -13,7 +13,7 @@ VieW[]
|
||||
SiZe[9]
|
||||
|
||||
|
||||
KoMi[5 1/2]
|
||||
KoMi[5.5]
|
||||
|
||||
|
||||
EVent[TV game]
|
||||
@@ -31,7 +31,7 @@ DaTe[1992]
|
||||
PlaCe[Osaka]
|
||||
|
||||
|
||||
REsult[Black wins by 4 1/2]
|
||||
REsult[B+4.5]
|
||||
|
||||
|
||||
Comment[
|
||||
|
||||
BIN
data/networks/Pass1.nn
Normal file
BIN
data/networks/Pass1.nn
Normal file
Binary file not shown.
1
data/test/scoretest1.sgf
Normal file
1
data/test/scoretest1.sgf
Normal file
@@ -0,0 +1 @@
|
||||
(;FF[4]GM[1]SZ[5]KM[3.5]RE[W+11.5];B[ad];W[bd];B[be];W[ed];B[dd];W[ba];B[cd];W[ca];B[ee];W[cb];B[];W[dc];B[db];W[ac];B[];W[ec];B[ae];W[bc];B[ce];W[cc];B[aa];W[de];B[be];W[];B[ce];W[ad];B[dd];W[];B[ea];W[eb];B[ae];W[];B[ee];W[da];B[bb];W[de];B[];W[])
|
||||
1
data/tourney1/gogame-121117181002-0500.sgf
Normal file
1
data/tourney1/gogame-121117181002-0500.sgf
Normal file
@@ -0,0 +1 @@
|
||||
(;FF[4]GM[1]SZ[6]KM[1.5]RE[W+26.5];B[ab];W[ff];B[ca];W[df];B[de];W[ce];B[cf];W[ba];B[aa];W[eb];B[be];W[bf];B[dc];W[ea];B[bc];W[cc];B[dd];W[fc];B[ad];W[db];B[fd];W[fa];B[cb];W[ed];B[];W[ec];B[fe];W[af];B[cd];W[ef];B[];W[ae];B[];W[bd];B[];W[ac];B[bb];W[da];B[ad];W[ee];B[];W[cc];B[dc];W[dd];B[];W[ac];B[];W[fd];B[];W[ba];B[aa];W[cb];B[];W[ab];B[];W[bc];B[];W[])
|
||||
1
data/tourney1/gogame-121117181051-0500.sgf
Normal file
1
data/tourney1/gogame-121117181051-0500.sgf
Normal file
@@ -0,0 +1 @@
|
||||
(;FF[4]GM[1]SZ[6]KM[1.5]RE[B+1.5];B[de];W[eb];B[af];W[ce];B[df];W[ef];B[cb];W[ff];B[cd];W[be];B[ee];W[db];B[ad];W[ea];B[ed];W[fc];B[fe];W[cc];B[bc];W[ef];B[];W[fa];B[ae];W[ba];B[];W[ac];B[];W[cf];B[ca];W[ec];B[dd];W[dc];B[bb];W[bd];B[];W[da];B[bf];W[ce];B[ab];W[];B[aa];W[be];B[];W[cf];B[];W[fd];B[];W[])
|
||||
1
data/tourney1/gogame-121117181139-0500.sgf
Normal file
1
data/tourney1/gogame-121117181139-0500.sgf
Normal file
@@ -0,0 +1 @@
|
||||
(;FF[4]GM[1]SZ[6]KM[1.5]RE[W+16.5];B[bc];W[ff];B[fb];W[eb];B[ee];W[ce];B[de];W[ef];B[fe];W[df];B[ea];W[fc];B[];W[db];B[ed];W[fa];B[ab];W[fd];B[cd];W[aa];B[];W[cc];B[af];W[bb];B[bf];W[ec];B[cb];W[be];B[ca];W[dd];B[ac];W[cf];B[de];W[bd];B[ed];W[ae];B[ba];W[bf];B[];W[da];B[];W[fe];B[];W[ee];B[];W[ad];B[];W[])
|
||||
1
data/tourney1/gogame-121117181230-0500.sgf
Normal file
1
data/tourney1/gogame-121117181230-0500.sgf
Normal file
@@ -0,0 +1 @@
|
||||
(;FF[4]GM[1]SZ[6]KM[1.5]RE[W+4.5];B[eb];W[bf];B[ff];W[dc];B[ba];W[bc];B[ce];W[cd];B[df];W[ee];B[be];W[af];B[ec];W[ca];B[ea];W[ed];B[fc];W[];B[ef];W[];B[fd];W[fe];B[cf];W[dd];B[cc];W[ad];B[bd];W[ae];B[fb];W[de];B[ab];W[ac];B[bb];W[];B[ce];W[];B[be];W[cb];B[df];W[aa];B[cf];W[bb];B[ff];W[];B[bd];W[];B[db];W[];B[da];W[];B[])
|
||||
1
data/tourney1/gogame-121117181328-0500.sgf
Normal file
1
data/tourney1/gogame-121117181328-0500.sgf
Normal file
@@ -0,0 +1 @@
|
||||
(;FF[4]GM[1]SZ[6]KM[1.5]RE[B+25.5];B[ce];W[ef];B[eb];W[fe];B[ba];W[ee];B[be];W[bd];B[df];W[ae];B[dd];W[fb];B[ea];W[cd];B[fc];W[dc];B[cc];W[ad];B[fa];W[ca];B[cf];W[ed];B[db];W[de];B[af];W[aa];B[da];W[];B[fd];W[bc];B[ec];W[ab];B[cb];W[bb];B[dd];W[];B[ff];W[ee];B[ac];W[ed];B[bd];W[aa];B[ef];W[];B[ae];W[];B[de];W[];B[fe];W[ed];B[ab];W[];B[bc];W[];B[ee];W[];B[])
|
||||
1
data/tourney1/gogame-121117181405-0500.sgf
Normal file
1
data/tourney1/gogame-121117181405-0500.sgf
Normal file
@@ -0,0 +1 @@
|
||||
(;FF[4]GM[1]SZ[6]KM[1.5]RE[B+2.5];B[eb];W[cb];B[ff];W[ed];B[ce];W[de];B[ba];W[bc];B[be];W[ee];B[ae];W[];B[df];W[aa];B[cc];W[ea];B[cf];W[ca];B[db];W[ac];B[fa];W[bd];B[ef];W[dd];B[fc];W[cd];B[ec];W[];B[dc];W[];B[da];W[bb];B[fe];W[fd];B[bf];W[];B[])
|
||||
9
data/tourney1/gotournament-121117181405.txt
Normal file
9
data/tourney1/gotournament-121117181405.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
Cumulative results for 3 games (BLACK=ROOT_PAR, WHITE=UCT)
|
||||
1. W+26.5
|
||||
2. B+1.5
|
||||
3. W+16.5
|
||||
Cumulative results for 3 games (BLACK=UCT, WHITE=ROOT_PAR)
|
||||
1. W+4.5
|
||||
2. B+25.5
|
||||
3. B+2.5
|
||||
Elapsed Time: 301.403 seconds.
|
||||
Reference in New Issue
Block a user