52c7ef49fcdf7f5f029c99e6db27e420a3621815,examples/pytorch/model_zoo/chem/property_prediction/regression.py,,main,#Any#,56

Before Change


        model = model_zoo.chem.SchNet(norm=args["norm"], output_dim=args["output_dim"])
        model.set_mean_std(train_set.mean, train_set.std, args["device"])
    elif args["model"] == "MGCN":
        model = model_zoo.chem.MGCNModel(norm=args["norm"], output_dim=args["output_dim"])
        model.set_mean_std(train_set.mean, train_set.std, args["device"])
    model.to(args["device"])

After Change


        args["num_epochs"] = 0
        model = model_zoo.chem.load_pretrained(args["exp"])
    else:
        model = load_model(args)
        if args["model"] in ["SCHNET", "MGCN"]:
            model.set_mean_std(train_set.mean, train_set.std, args["device"])
        loss_fn = nn.MSELoss(reduction="none")
        optimizer = torch.optim.Adam(model.parameters(), lr=args["lr"], weight_decay=args["weight_decay"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: dmlc/dgl
Commit Name: 52c7ef49fcdf7f5f029c99e6db27e420a3621815
Time: 2019-10-25
Author: mufeili1996@gmail.com
File Name: examples/pytorch/model_zoo/chem/property_prediction/regression.py
Class Name:
Method Name: main


Project Name: raghakot/keras-vis
Commit Name: 2443550ee6915daf6e7ff6306f3dc2922752ea4b
Time: 2017-07-09
Author: ragha@outlook.com
File Name: vis/backend/tensorflow_backend.py
Class Name:
Method Name: modify_model_backprop


Project Name: experiencor/keras-yolo3
Commit Name: b2be56552694c9f18b72bfdadf936e09f55f9874
Time: 2018-04-09
Author: experiencor@gmail.com
File Name: train.py
Class Name:
Method Name: _main_


Project Name: dmlc/dgl
Commit Name: 52c7ef49fcdf7f5f029c99e6db27e420a3621815
Time: 2019-10-25
Author: mufeili1996@gmail.com
File Name: examples/pytorch/model_zoo/chem/property_prediction/classification.py
Class Name:
Method Name: main


Project Name: KhronosGroup/NNEF-Tools
Commit Name: 090d93d59bfcf4c6d52cf942d0b599935a7d1440
Time: 2019-02-26
Author: tamas.danyluk@aimotive.com
File Name: au-zone/nnef_converter/common/nnef_converter.py
Class Name: NNEFImporter
Method Name: run


Project Name: pyannote/pyannote-audio
Commit Name: e81f54bb33f4a41c2ebdfdda41e5d70b52c32c87
Time: 2017-05-05
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/base_autograd.py
Class Name: SequenceEmbeddingAutograd
Method Name: restart