forked from b06b01073/go_thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgovars.py
35 lines (27 loc) · 829 Bytes
/
govars.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ANYONE = None
NOONE = -1
SIZE = 19
PADDED_W = 1
PADDED_SIZE = 19 + PADDED_W * 2
BOARD_SIZE = SIZE * SIZE
ACTION_SPACE = SIZE * SIZE + 1
PASS = SIZE * SIZE
BLACK = 0
WHITE = 1
TURN_CHNL = 2 # if state[TURN_CHNL] == WHITE, then it is white to play
INVD_CHNL = 3
PASS_CHNL = 4
DONE_CHNL = 5
NUM_CHNLS = 6
ORI_FEAT_CHANNEL = 6 # (black, white, turn, invalid, empty, ones)
LAST_MOVE_PLANES = 4
CAPTURE_PLANES = 4
SELF_ATARI_PLANES = 4
LIBERTY_PLANES = 8
FEAT_CHNLS = ORI_FEAT_CHANNEL + LAST_MOVE_PLANES # (black, white, turn, invalid, recent moves * 4, empty, ones)
STYLE_CHNLS=7
STYLE_CAT = 3
INHIBIT_CROP_SIZE = 7 # the crop in strong_augment cannot crop the region center at the last move with size (5, 5)
CROP_SIZE = 5 # crop a region with size (h, w), where h, w \in [1, 5]
RANDOM_MOVES_RATIO = 0.2
INHIBIT_MOVE_SIZE=9