d9748278abf04a9c74a95053fda62d0bff8b9f93,t2t_csaky/utils/run.py,,experiment,#,136
Before Change
// Run a longer experiment, with many calls to the above functions.
def experiment():
clusters = [100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600]
for dataset in ["DailyDialog", "Persona_Chat"]:
for source_cluster in clusters:
for target_cluster in clusters:
// modify config files
DATA_FILTERING["source_clusters"] = source_cluster
DATA_FILTERING["target_clusters"] = target_cluster
DATA_FILTERING["data_dir"] = (
"data_dir/" + dataset +
"/base_with_numbers/filtered_data/hash_jaccard/" +
str(source_cluster) + "-" + str(target_cluster) + "_filtering")
FLAGS["data_dir"] = "data_dir/" + dataset + "/base_with_numbers"
data_filtering()
// Run some command line stuff, and get the output in real-time.
def run_command(command=["t2t-datagen",
"--t2t_usr_dir=" + FLAGS["t2t_usr_dir"],
"--data_dir=" + FLAGS["data_dir"],
"--problem=" + FLAGS["problem"]]):
After Change
def experiment():
// overwrite the checkpoint file
ckpt_list = [22001, 33001, 44001, 66001, 88001, 109001, 142001, 175001, 218001, 225001]
for ckpt in ckpt_list:
with open(FLAGS["train_dir"] + "/checkpoint", "w") as ckpt_file:
ckpt_file.write("model_checkpoint_path: "model.ckpt-" + str(ckpt) + """)
FLAGS["output_file_name"] = "dev_set_" + str(ckpt) + ".txt"
decoding()
// Run some command line stuff, and get the output in real-time.
def run_command(command=["t2t-datagen",
"--t2t_usr_dir=" + FLAGS["t2t_usr_dir"],
"--data_dir=" + FLAGS["data_dir"],
"--problem=" + FLAGS["problem"]]):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: d9748278abf04a9c74a95053fda62d0bff8b9f93
Time: 2019-02-16
Author: ricsinaruto@hotmail.com
File Name: t2t_csaky/utils/run.py
Class Name:
Method Name: experiment
Project Name: geekcomputers/Python
Commit Name: 3dfdfaa6db730f66bdff5155320d4c4ee5d5b29c
Time: 2020-09-20
Author: markhappy200@gmail.com
File Name: EncryptionTool.py
Class Name:
Method Name: readAndDecryptAndSave
Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: d9748278abf04a9c74a95053fda62d0bff8b9f93
Time: 2019-02-16
Author: ricsinaruto@hotmail.com
File Name: t2t_csaky/utils/run.py
Class Name:
Method Name: experiment
Project Name: geekcomputers/Python
Commit Name: 3dfdfaa6db730f66bdff5155320d4c4ee5d5b29c
Time: 2020-09-20
Author: markhappy200@gmail.com
File Name: EncryptionTool.py
Class Name:
Method Name: