db450bc926b5e86925e13488a813ed2870b234aa,examples/transformer/hyperparams.py,,,#,15

Before Change


    "seed": 123,
    "shuffle": True,
    "source_dataset": {
        "files": ["/home/hzt/shr/t2t_data/train_ende_wmt_bpe32k_en.txt.filtered"],
        "vocab_file": "/home/hzt/shr/t2t_data/vocab.bpe.32000.filtered",
        "processing": {
            "bos_token": "<BOS>",

After Change


args = Hyperparams()
argparser = argparse.ArgumentParser()
argparser.add_argument("--train_src", type=str, default="train_ende_wmt_bpe32k_en.txt.filtered")
argparser.add_argument("--train_tgt", type=str, default="train_ende_wmt_bpe32k_de.txt.filtered")
//argparser.add_argument("--source_train", type=str, default="data/translation/de-en/train.tags.de-en.en")
//argparser.add_argument("--target_train", type=str, default="data/translation/de-en/train.tags.de-en.de")
argparser.add_argument("--source_test", type=str, default="/tmp/t2t_datagen/newstest2014.tok.bpe.32000.en")
argparser.add_argument("--target_test", type=str, default="/tmp/t2t_datagen/newstest2014.tok.bpe.32000.de")
argparser.add_argument("--data_dir", type=str, default="/home/hzt/shr/t2t_data/")
argparser.add_argument("--t2t_vocab", type=str, default="vocab.bpe.32000")
//batch size is only used when testing the model
argparser.add_argument("--batch_size", type=int, default=1)
argparser.add_argument("--eval_src", type=str, default="eval_ende_wmt_bpe32k_en.txt")
argparser.add_argument("--eval_tgt", type=str, default="eval_ende_wmt_bpe32k_de.txt")

argparser.parse_args(namespace=args)
args.vocab_dir = os.path.expanduser(args.vocab_dir)
boundaries = _bucket_boundaries(max_length=256)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: asyml/texar
Commit Name: db450bc926b5e86925e13488a813ed2870b234aa
Time: 2018-03-19
Author: zhiting.hu@petuum.com
File Name: examples/transformer/hyperparams.py
Class Name:
Method Name:


Project Name: tensorlayer/tensorlayer
Commit Name: a0d0c18fcde09f06be9ca1556052cf8064df4ac6
Time: 2019-06-09
Author: 1402434478@qq.com
File Name: examples/reinforcement_learning/tutorial_A3C.py
Class Name:
Method Name:


Project Name: microsoft/nni
Commit Name: 5c96b82c3c86dde8250aa371aff958872a62008e
Time: 2019-12-02
Author: 27178119+squirrelsc@users.noreply.github.com
File Name: examples/nas/pdarts/search.py
Class Name:
Method Name:


Project Name: asyml/texar
Commit Name: db450bc926b5e86925e13488a813ed2870b234aa
Time: 2018-03-19
Author: zhiting.hu@petuum.com
File Name: examples/transformer/hyperparams.py
Class Name:
Method Name: