2018-05-26 21:47:10 +00:00
|
|
|
def run_stuff(board_rep, model_name)
|
2018-05-26 21:36:23 +00:00
|
|
|
epi_count = 0
|
2018-05-26 21:47:10 +00:00
|
|
|
system("python3 main.py --train --model #{model_name} --board-rep #{board_rep} --episodes 1 --force-creation")
|
2018-05-26 21:36:23 +00:00
|
|
|
while epi_count < 200000 do
|
2018-05-26 21:47:10 +00:00
|
|
|
for _ in (1..3) do
|
|
|
|
system("python3 main.py --eval --model #{model_name} --board-rep #{board_rep} --eval-methods dumbeval --episodes 250")
|
|
|
|
end
|
|
|
|
|
|
|
|
for _ in (1..3) do
|
|
|
|
system("python3 main.py --eval --model #{model_name} --board-rep #{board_rep} --eval-methods pubeval --episodes 250")
|
|
|
|
end
|
|
|
|
|
|
|
|
system("python3 main.py --train --model #{model_name} --board-rep #{board_rep} --episodes 2000")
|
|
|
|
|
2018-05-26 21:36:23 +00:00
|
|
|
epi_count += 2000
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
### ///////////////////////////////////////////////////////////////
|
|
|
|
# QUACK TESTINGS
|
|
|
|
### ///////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
board_rep = "quack"
|
|
|
|
model_name = "quack_test_0_ply"
|
|
|
|
|
2018-05-26 21:47:10 +00:00
|
|
|
|
2020-01-28 20:44:34 +00:00
|
|
|
#run_stuff(board_rep, model_name)
|
2018-05-26 21:36:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
#board_rep = "quack"
|
|
|
|
#model_name = "quack_test_1_ply"
|
2018-05-26 21:47:10 +00:00
|
|
|
#
|
2018-05-26 21:36:23 +00:00
|
|
|
|
2018-05-26 21:47:10 +00:00
|
|
|
#run_stuff(board_rep, model_name)
|
2018-05-26 21:36:23 +00:00
|
|
|
|
|
|
|
### ///////////////////////////////////////////////////////////////
|
|
|
|
# QUACK-FAT TESTING
|
|
|
|
### ///////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
board_rep = "quack-fat"
|
|
|
|
model_name = "quack-fat_test_0_ply"
|
|
|
|
|
2018-05-26 21:47:10 +00:00
|
|
|
|
2020-01-28 20:44:34 +00:00
|
|
|
#run_stuff(board_rep, model_name)
|
2018-05-26 21:36:23 +00:00
|
|
|
|
|
|
|
#board_rep = "quack-fat"
|
|
|
|
#model_name = "quack-fat_test_1_ply"
|
2018-05-26 21:47:10 +00:00
|
|
|
#
|
2018-05-26 21:36:23 +00:00
|
|
|
|
2018-05-26 21:47:10 +00:00
|
|
|
#run_stuff(board_rep, model_name)
|
2018-05-26 21:36:23 +00:00
|
|
|
|
|
|
|
### ///////////////////////////////////////////////////////////////
|
|
|
|
# QUACK-NORM TESTING
|
|
|
|
### ///////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
board_rep = "quack-norm"
|
|
|
|
model_name = "quack-norm_test_0_ply"
|
|
|
|
|
2018-05-26 21:47:10 +00:00
|
|
|
|
2020-01-28 20:44:34 +00:00
|
|
|
#run_stuff(board_rep, model_name)
|
2018-05-26 21:36:23 +00:00
|
|
|
|
|
|
|
#board_rep = "quack-norm"
|
|
|
|
#model_name = "quack-norm_test_1_ply"
|
2018-05-26 21:47:10 +00:00
|
|
|
#
|
2018-05-26 21:36:23 +00:00
|
|
|
|
2018-05-26 21:47:10 +00:00
|
|
|
#run_stuff(board_rep, model_name)
|
2018-05-26 21:36:23 +00:00
|
|
|
|
|
|
|
### ///////////////////////////////////////////////////////////////
|
|
|
|
# TESAURO TESTING
|
|
|
|
### ///////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
board_rep = "tesauro"
|
2020-01-28 20:44:34 +00:00
|
|
|
model_name = "tesauro_test3_0_ply"
|
2018-05-26 21:36:23 +00:00
|
|
|
|
2018-05-26 21:47:10 +00:00
|
|
|
|
|
|
|
run_stuff(board_rep, model_name)
|
2018-05-26 21:36:23 +00:00
|
|
|
|
|
|
|
#board_rep = "tesauro"
|
|
|
|
#model_name = "tesauro_test_1_ply"
|
2018-05-26 21:47:10 +00:00
|
|
|
#
|
2018-05-26 21:36:23 +00:00
|
|
|
|
2018-05-26 21:47:10 +00:00
|
|
|
#run_stuff(board_rep, model_name)
|
2018-05-26 21:36:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|