9df8cd324207d3924439c3d912229811e34687f0,python/dgl/model_zoo/chem/pretrain.py,,load_pretrained,#Any#Any#,58

Before Change


        model = MPNNModel(output_dim=12)

    elif model_name == "JTNN_ZINC":
        vocab_file = "{}/jtnn/{}.txt".format(get_download_dir(), "vocab")
        model = DGLJTNNVAE(vocab_file=vocab_file,
                           depth=3,
                           hidden_size=450,
                           latent_size=56)

After Change


        vocab_file = "{}/jtnn/{}.txt".format(default_dir, "vocab")
        if not os.path.exists(vocab_file):
            zip_file_path = "{}/jtnn.zip".format(default_dir)
            download("https://s3-ap-southeast-1.amazonaws.com/dgl-data-cn/dataset/jtnn.zip",
                     path=zip_file_path)
            extract_archive(zip_file_path, "{}/jtnn".format(default_dir))
        model = DGLJTNNVAE(vocab_file=vocab_file,
                           depth=3,
                           hidden_size=450,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: dmlc/dgl
Commit Name: 9df8cd324207d3924439c3d912229811e34687f0
Time: 2019-09-10
Author: mufeili1996@gmail.com
File Name: python/dgl/model_zoo/chem/pretrain.py
Class Name:
Method Name: load_pretrained


Project Name: uber/ludwig
Commit Name: 1b07028eb82ec7f146cf8a49e2101063e6f586d0
Time: 2019-10-05
Author: piero@uber.com
File Name: ludwig/utils/nlp_utils.py
Class Name:
Method Name: load_nlp_pipeline


Project Name: tyarkoni/pliers
Commit Name: 2ef66021777e0bd012038eca3d225b753e24b7f8
Time: 2019-03-25
Author: tyarkoni@gmail.com
File Name: pliers/extractors/text.py
Class Name: SpaCyExtractor
Method Name: __init__


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: 598d2b54295bdb2b741b1bcf1f794eabbdf3200b
Time: 2017-04-23
Author: seannaren@hotmail.com
File Name: data/ted.py
Class Name:
Method Name: main