286a864220a00732d382a75051e11877acf13c3f,deeppavlov/core/models/keras_model.py,KerasModel,load,#KerasModel#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,141

Before Change


            model with loaded weights and network parameters from files
            but compiled with given learning parameters
        
        if self.ser_path.is_dir():
            opt_path = "{}/{}_opt.json".format(self.ser_path, self._ser_file)
            weights_path = "{}/{}.h5".format(self.ser_path, self._ser_file)
        else:
            opt_path = "{}_opt.json".format(self.ser_path)
            weights_path = "{}.h5".format(self.ser_path)

        if Path(opt_path).exists() and Path(weights_path).exists():

            print("___Initializing model from saved___"
                  "\nModel weights file is %s.h5"

After Change


                raise ConfigError("Provided save path is incorrect!")

            opt_path = Path("{}_opt.json".format(str(self.load_path.resolve())))
            weights_path = Path("{}.h5".format(str(self.load_path.resolve())))

            if opt_path.exists() and weights_path.exists():

                print("___Initializing model from saved___"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 286a864220a00732d382a75051e11877acf13c3f
Time: 2018-01-24
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: load


Project Name: deepmipt/DeepPavlov
Commit Name: 286a864220a00732d382a75051e11877acf13c3f
Time: 2018-01-24
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: save


Project Name: theislab/scanpy
Commit Name: d603299e387628f3878ff0b783698494f87c602c
Time: 2019-03-29
Author: ivirshup@gmail.com
File Name: scanpy/datasets/_expression_atlas.py
Class Name:
Method Name: expression_atlas