Commit 7938ea06 by songxinkai

fix bug in analysis.py

parent 6b7375ea
...@@ -17,10 +17,10 @@ with open(filename, 'r') as f: ...@@ -17,10 +17,10 @@ with open(filename, 'r') as f:
#if l.startswith('R') or l.startswith('D') or l.startswith('s'): #if l.startswith('R') or l.startswith('D') or l.startswith('s'):
# l = l.strip() # l = l.strip()
# model[l.split()[0]] = float(l.split()[1]) # model[l.split()[0]] = float(l.split()[1])
model_name = l.strip().split(" ")[0] model_name = l.strip().split()[0]
if int(model_name.split("_")[-1].split(".")[0]) > 450000: if int(model_name.split("_")[-1].split(".")[0]) > 450000:
continue continue
model[model_name] = float(l.split(" ")[1]) model[model_name] = float(l.split()[1])
routine = int(model_name.split('test_')[-1].split("/")[0]) routine = int(model_name.split('test_')[-1].split("/")[0])
if routine not in routines: if routine not in routines:
routines.append(routine) routines.append(routine)
...@@ -89,6 +89,6 @@ for r in routines: ...@@ -89,6 +89,6 @@ for r in routines:
# plt.plot(*getPlot(smodel, routines[i]), linestyle='-', label=routines[i]) # plt.plot(*getPlot(smodel, routines[i]), linestyle='-', label=routines[i])
plt.xlabel("Training Iteration", fontsize=font_size) plt.xlabel("Training Iteration", fontsize=font_size)
plt.ylabel("Elo-Rating", fontsize=font_size) plt.ylabel("Elo-Rating", fontsize=font_size)
plt.legend(loc="lower left", fontsize=font_size) plt.legend(loc="lower right", fontsize=font_size)
plt.show() plt.show()
plt.savefig('figure.png') plt.savefig('figure.png')
figure.png

27.7 KB | W: | H:

figure.png

39.2 KB | W: | H:

figure.png
figure.png
figure.png
figure.png
  • 2-up
  • Swipe
  • Onion skin
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
config_p1_eval: /share/alphazero-general/go9/etc/pk_p1_eval.conf
config_p1_mcts: /share/alphazero-general/go9/etc/pk_p1_mcts.conf
config_p2_eval: /share/alphazero-general/go9/etc/pk_p2_eval.conf
config_p2_mcts: /share/alphazero-general/go9/etc/pk_p2_mcts.conf
model_p1: /share/backup_data/go9/test_2/off_models/go9_iter_442000.cambricon
model_p2: /share/backup_data/go9/test_1/off_models/go9_iter_176000.cambricon
P2 win rate
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment