From 02b9e0e0fc556c735f79ac518e171fb5d9c95c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Sat, 26 May 2018 23:36:23 +0200 Subject: [PATCH] fix 0-ply tests --- bin/run_all_tests.rb | 83 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 bin/run_all_tests.rb diff --git a/bin/run_all_tests.rb b/bin/run_all_tests.rb new file mode 100644 index 0000000..da3c4aa --- /dev/null +++ b/bin/run_all_tests.rb @@ -0,0 +1,83 @@ +def run_stuff(board_rep, model_name, ply) + epi_count = 0 + system("python3 main.py --train --model #{model_name} --board-rep #{board_rep} --episodes 1 --ply #{ply}") + while epi_count < 200000 do + system("python3 main.py --eval --model #{model_name} --eval-methods dumbeval --episodes 250 --ply #{ply} --repeat-eval 3") + system("python3 main.py --eval --model #{model_name} --eval-methods pubeval --episodes 250 --ply #{ply} --repeat-eval 3") + system("python3 main.py --train --model #{model_name} --episodes 2000 --ply #{ply}") + epi_count += 2000 + end +end + + +### /////////////////////////////////////////////////////////////// +# QUACK TESTINGS +### /////////////////////////////////////////////////////////////// + +board_rep = "quack" +model_name = "quack_test_0_ply" +ply = 0 + +run_stuff(board_rep, model_name, ply) + + +#board_rep = "quack" +#model_name = "quack_test_1_ply" +#ply = 1 + +#run_stuff(board_rep, model_name, ply) + +### /////////////////////////////////////////////////////////////// +# QUACK-FAT TESTING +### /////////////////////////////////////////////////////////////// + +board_rep = "quack-fat" +model_name = "quack-fat_test_0_ply" +ply = 0 + +run_stuff(board_rep, model_name, ply) + +#board_rep = "quack-fat" +#model_name = "quack-fat_test_1_ply" +#ply = 1 + +#run_stuff(board_rep, model_name, ply) + +### /////////////////////////////////////////////////////////////// +# QUACK-NORM TESTING +### /////////////////////////////////////////////////////////////// + + +board_rep = "quack-norm" +model_name = "quack-norm_test_0_ply" +ply = 0 + +run_stuff(board_rep, model_name, ply) + +#board_rep = "quack-norm" +#model_name = "quack-norm_test_1_ply" +#ply = 1 + +#run_stuff(board_rep, model_name, ply) + +### /////////////////////////////////////////////////////////////// +# TESAURO TESTING +### /////////////////////////////////////////////////////////////// + + +board_rep = "tesauro" +model_name = "tesauro_test_0_ply" +ply = 0 + +run_stuff(board_rep, model_name, ply) + +#board_rep = "tesauro" +#model_name = "tesauro_test_1_ply" +#ply = 1 + +#run_stuff(board_rep, model_name, ply) + + + + +