<jupyter_start><jupyter_text>BREAKTHROUGH<jupyter_code>game = "breakthrough"
config = {"columns": 5, "rows": 5}
pt_result = pt_main(game,
                    config,
                    checkpoint_dir,
                    num_train_episodes,
                    eval_every,
                    hidden_layers_sizes,
                    replay_buffer_capacity,batch_size)
import matplotlib.pyplot as plt

ep = [x for x in range(len(pt_result))]
pt_r_mean0 = [y[0] for y in pt_result]
pt_r_mean1 = [y[1] for y in pt_result]

plt.plot(ep,pt_r_mean0, c='red')
plt.plot(ep,pt_r_mean1, c='blue')
plt.xlabel('Episode')
plt.ylabel('Mean episode rewards')
plt.show()
result_tf = tf_main(game,
                    config,
                    checkpoint_dir,
                    num_train_episodes,
                    eval_every,
                    hidden_layers_sizes,
                    replay_buffer_capacity,batch_size)
ep = [x for x in range(len(result_tf))]
tf_r_mean0 = [y[0] for y in result_tf]
tf_r_mean1 = [y[1] for y in result_tf]

plt.plot(ep,tf_r_mean0, c='red')
plt.plot(ep,tf_r_mean1, c='blue')
plt.xlabel('Episode')
plt.ylabel('Mean episode rewards')
plt.show()
plt.plot(ep,pt_r_mean0, c='skyblue')
plt.plot(ep,pt_r_mean1, c='skyblue', linestyle='dashed')
plt.plot(ep,tf_r_mean0, c='pink')
plt.plot(ep,tf_r_mean1, c='pink', linestyle='dashed')
plt.xlabel('Episode')
plt.ylabel('Mean episode rewards')
plt.show()<jupyter_output><empty_output><jupyter_text>TIC-TAC-TOE<jupyter_code>game = "tic_tac_toe"
config = {}
num_train_episodes = 20000
eval_every = 1000
pt_result = pt_main(game,
                    config,
                    checkpoint_dir,
                    num_train_episodes,
                    eval_every,
                    hidden_layers_sizes,
                    replay_buffer_capacity,batch_size)
import matplotlib.pyplot as plt

ep = [x for x in range(len(pt_result))]
pt_r_mean0 = [y[0] for y in pt_result]
pt_r_mean1 = [y[1] for y in pt_result]

plt.plot(ep,pt_r_mean0, c='red')
plt.plot(ep,pt_r_mean1, c='blue')
plt.xlabel('Episode')
plt.ylabel('Mean episode rewards')
plt.show()
result_tf = tf_main(game,
                    config,
                    checkpoint_dir,
                    num_train_episodes,
                    eval_every,
                    hidden_layers_sizes,
                    replay_buffer_capacity,batch_size)
ep = [x for x in range(len(result_tf))]
tf_r_mean0 = [y[0] for y in result_tf]
tf_r_mean1 = [y[1] for y in result_tf]

plt.plot(ep,tf_r_mean0, c='red')
plt.plot(ep,tf_r_mean1, c='blue')
plt.xlabel('Episode')
plt.ylabel('Mean episode rewards')
plt.show()
plt.plot(ep,pt_r_mean0, c='skyblue')
plt.plot(ep,pt_r_mean1, c='skyblue', linestyle='dashed')
plt.plot(ep,tf_r_mean0, c='pink')
plt.plot(ep,tf_r_mean1, c='pink', linestyle='dashed')
plt.xlabel('Episode')
plt.ylabel('Mean episode rewards')
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12857635298173042, 'fraction_numerical': 0.014822475008617718, 'mean_word_length': 2.932249322493225, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '525524', 'license': 'Apache-2.0', 'n_tokens_mistral': 1162, 'n_tokens_neox': 1078, 'n_words': 191, 'path': 'open_spiel/colabs/research_dqn_pytorch.ipynb', 'repo_name': 'dennisjay/tournament', 'size': '2901'}