Skip to content
Browse files

fixed preprocessing_benchmark for new data and game_converter structure

  • Loading branch information...
1 parent 78cf9f2 commit 44d0b03caee15b52c361af4e656c2a3c56856a4e @wrongu wrongu committed
Showing with 195 additions and 2 deletions.
  1. +6 −2 benchmarks/preprocessing_benchmark.py
  2. +189 −0 tests/test_data/sgf/Lee-Sedol-vs-AlphaGo-20160309.sgf
View
8 benchmarks/preprocessing_benchmark.py
@@ -5,7 +5,11 @@
test_features = ["board", "turns_since", "liberties", "capture_size", "self_atari_size", "liberties_after", "sensibleness", "zeros"]
gc = game_converter()
-args = ('tests/test_sgfs/AlphaGo-vs-Lee-Sedol-20160310-first10only.sgf', test_features)
+args = ('tests/test_data/sgf/Lee-Sedol-vs-AlphaGo-20160309.sgf', test_features)
-prof.runcall(gc.convert_game, *args)
+def run_convert_game():
+ for traindata in gc.convert_game(*args):
+ pass
+
+prof.runcall(run_convert_game)
prof.dump_stats('bench_results.prof')
View
189 tests/test_data/sgf/Lee-Sedol-vs-AlphaGo-20160309.sgf
@@ -0,0 +1,189 @@
+(;GM[1]FF[4]CA[UTF-8]AP[CGoban:3]ST[2]
+RU[Chinese]SZ[19]KM[7.50]TM[7200]OT[3x60 byo-yomi]
+PW[AlphaGo]PB[Lee Sedol]BR[9d]DT[2016-03-09]EV[Google DeepMind Challenge Match]RO[Game 1]PC[Seoul, Korea]WT[Computer]BT[Human]SO[https://gogameguru.com/]RE[W+Resign]
+;B[qd]
+;W[dd]
+;B[pq]
+;W[dp]
+;B[fc]
+;W[cf]
+;B[ql]
+;W[od]
+;B[ld]
+;W[qc]
+;B[rc]
+;W[pc]
+;B[re]
+;W[of]
+;B[pg]
+;W[og]
+;B[ph]
+;W[id]
+;B[lf]
+;W[oh]
+;B[pi]
+;W[lh]
+;B[kh]
+;W[ke]
+;B[le]
+;W[lg]
+;B[kg]
+;W[kf]
+;B[ne]
+;W[oe]
+;B[jc]
+;W[ic]
+;B[jd]
+;W[ie]
+;B[je]
+;W[jf]
+;B[if]
+;W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+;W[qb]
+;B[sf]
+;W[rd]
+;B[ai]
+;W[ah]
+;B[aj]
+;W[bh]
+;B[gi]
+;W[fj]
+;B[fk]
+;W[oc]
+;B[mc]
+;W[cj]
+;B[al]
+;W[nm]
+;B[pm]
+;W[aq]
+;B[gh]
+;W[fh]C[https://gogameguru.com/])

0 comments on commit 44d0b03

Please sign in to comment.
Something went wrong with that request. Please try again.