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

Before Change



            print("___Initializing model from saved___"
                  "\nModel weights file is %s.h5"
                  "\nNetwork parameters are from %s_opt.json" % (self._ser_file, self._ser_file))

            self.opt = read_json(opt_path)

After Change


            but compiled with given learning parameters
        
        if self.load_path:
            if isinstance(self.load_path, Path) and not self.load_path.parent.is_dir():
                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():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: azavea/raster-vision
Commit Name: b72297bf0579a057d9bdaf840728c20d0cd1e8fe
Time: 2020-09-18
Author: AdeelH@users.noreply.github.com
File Name: rastervision_pytorch_backend/rastervision/pytorch_backend/pytorch_learner_backend_config.py
Class Name: PyTorchLearnerBackendConfig
Method Name: validate_solver_config


Project Name: merenlab/anvio
Commit Name: d3feafbcc8df4e03735ba3143fa822e28b316ba4
Time: 2020-11-14
Author: a.murat.eren@gmail.com
File Name: anvio/genomedescriptions.py
Class Name: GenomeDescriptions
Method Name: sanity_check