From b11e783b3099559664432f45f338051f572849cc Mon Sep 17 00:00:00 2001 From: = <=> Date: Sun, 20 May 2018 18:50:28 +0200 Subject: [PATCH] add 0-ply-tests --- bin/0-ply-tests.rb | 78 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 bin/0-ply-tests.rb diff --git a/bin/0-ply-tests.rb b/bin/0-ply-tests.rb new file mode 100644 index 0000000..465d7b0 --- /dev/null +++ b/bin/0-ply-tests.rb @@ -0,0 +1,78 @@ +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 = 1 + +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 = 1 + +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)