00de689e6624b4b3c312c921226ad23f49a79229,deeppavlov/core/models/keras_model.py,KerasModel,load,#KerasModel#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,121
Before Change
"\nNetwork parameters are from %s_opt.json" % (self._model_file, self._model_file))
opt_path = Path(str(self.model_path) + "_opt.json")
weights_path = str(self.model_path) + ".h5"
if opt_path.is_file():
self.opt = read_json(opt_path)
else:
After Change
"\nModel weights file is %s.h5"
"\nNetwork parameters are from %s_opt.json" % (self._model_file, self._model_file))
if self.model_path.is_dir():
opt_path = "{}/{}_opt.json".format(self.model_path, self._model_file)
weights_path = "{}/{}.h5".format(self.model_path, self._model_file)
else:
opt_path = "{}_opt.json".format(self.model_path)
weights_path = "{}.h5".format(self.model_path)
if Path(opt_path).exists() and Path(weights_path).exists():
self.opt = read_json(opt_path)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: deepmipt/DeepPavlov
Commit Name: 00de689e6624b4b3c312c921226ad23f49a79229
Time: 2018-01-19
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: 00de689e6624b4b3c312c921226ad23f49a79229
Time: 2018-01-19
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: save
Project Name: keras-team/keras
Commit Name: 7a6ee934e1e5414a13c7aca670640e178d2cca94
Time: 2016-10-25
Author: carlthome@gmail.com
File Name: keras/utils/visualize_util.py
Class Name:
Method Name: model_to_dot