d9748278abf04a9c74a95053fda62d0bff8b9f93,t2t_csaky/utils/run.py,,experiment,#,136
Before Change
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
// 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()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: UFAL-DSG/tgen
Commit Name: e4eac21828a6b9037d314266908f4ba083b1940e
Time: 2015-12-15
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/parallel_percrank_train.py
Class Name:
Method Name: dump_ranker
Project Name: pyinstaller/pyinstaller
Commit Name: a5505747ac8b1f3891a63363a9b86af480452f77
Time: 2018-05-29
Author: itsayellow+dev@gmail.com
File Name: PyInstaller/building/osx.py
Class Name: BUNDLE
Method Name: assemble