2032abb5ed9c7bc96703f631359858f3b6ae51c6,snorkel/learning/disc_learning.py,TFNoiseAwareModel,load,#TFNoiseAwareModel#Any#Any#,91

Before Change


            @verbose: be talkative?
        
        self.load_info(model_name)
        load_dict = self._build()
        saver = tf.train.Saver(load_dict)
        ckpt = tf.train.get_checkpoint_state("./")
        if ckpt and ckpt.model_checkpoint_path:
            saver.restore(self.session, ckpt.model_checkpoint_path)

After Change


            @verbose: be talkative?
        
        self.load_info(model_name)
        self._build()
        load_dict = self.save_dict or tf.global_variables()
        saver = tf.train.Saver(load_dict)
        ckpt = tf.train.get_checkpoint_state("./")
        if ckpt and ckpt.model_checkpoint_path:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: snorkel-team/snorkel
Commit Name: 2032abb5ed9c7bc96703f631359858f3b6ae51c6
Time: 2017-01-16
Author: henry.ehrenberg@outlook.com
File Name: snorkel/learning/disc_learning.py
Class Name: TFNoiseAwareModel
Method Name: load


Project Name: analysiscenter/batchflow
Commit Name: 2dbbfb3c32977af033e6ecc250c1ca786abbfa72
Time: 2019-11-21
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/eager_torch/base.py
Class Name: EagerTorch
Method Name: train


Project Name: analysiscenter/batchflow
Commit Name: cf56b1024458f7ebc9a77c42457a9c192069bd49
Time: 2019-11-17
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/eager_torch/base.py
Class Name: EagerTorch
Method Name: train