fea19ef103bfdae10a268c7c1b3f63a9e1a3701f,onmt/tests/test_preprocess.py,,,#,106
Before Change
_add_test(p, "dataset_build")
// Test image preprocessing
for p in copy.deepcopy(test_databuild) :
p.append(("data_type", "img"))
p.append(("src_dir", "/tmp/im2text/images"))
p.append(("train_src", "/tmp/im2text/src-train-head.txt"))
After Change
[("shard_size", 50)],
[("tgt_vocab", "/tmp/tgt_vocab.txt")],
]
test_databuild_common = [("data_type", "img"),
("src_dir", "/tmp/im2text/images"),
("train_src", "/tmp/im2text/src-train-head.txt"),
("train_tgt", "/tmp/im2text/tgt-train-head.txt"),
("valid_src", "/tmp/im2text/src-val-head.txt"),
("valid_tgt", "/tmp/im2text/tgt-val-head.txt"),
]
for p in test_databuild:
_add_test(p + test_databuild_common, "dataset_build")
// Test audio preprocessing
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: OpenNMT/OpenNMT-py
Commit Name: fea19ef103bfdae10a268c7c1b3f63a9e1a3701f
Time: 2018-10-05
Author: da03@users.noreply.github.com
File Name: onmt/tests/test_preprocess.py
Class Name:
Method Name:
Project Name: keras-team/autokeras
Commit Name: 5b3af9ff43bc61f8034f1202a2b57f21c8ee3771
Time: 2018-08-01
Author: jin@tamu.edu
File Name: autokeras/graph.py
Class Name: Graph
Method Name: to_add_skip_model
Project Name: keras-team/autokeras
Commit Name: 5b3af9ff43bc61f8034f1202a2b57f21c8ee3771
Time: 2018-08-01
Author: jin@tamu.edu
File Name: autokeras/graph.py
Class Name: Graph
Method Name: to_concat_skip_model