a29d4b3d9abed59b206860d02ef850a148f1f5f9,deeppavlov/models/evolution/evolution_many_inputs_model.py,KerasEvolutionClassificationManyInputsModel,save,#KerasEvolutionClassificationManyInputsModel#Any#,391
Before Change
None
if not self.save_path:
raise ConfigError("No `save_path` is provided for Keras model!")
elif isinstance(self.save_path, Path) and not self.save_path.parent.is_dir():
raise ConfigError("Provided save path is incorrect!")
else:
opt_path = "{}_opt.json".format(str(self.save_path.resolve()))
weights_path = "{}.h5".format(str(self.save_path.resolve()))
log.info("[saving model to {}]".format(opt_path))
self.model.save_weights(weights_path)
if type(self.opt["binary_mask"]) is list:
pass
else:
self.opt["binary_mask"] = self.opt["binary_mask"].tolist()
save_json(self.opt, opt_path)
return True
After Change
else:
self.opt["binary_mask"] = self.opt["binary_mask"].tolist()
super().save(fname)
return True
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 35
Instances
Project Name: deepmipt/DeepPavlov
Commit Name: a29d4b3d9abed59b206860d02ef850a148f1f5f9
Time: 2018-05-25
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_many_inputs_model.py
Class Name: KerasEvolutionClassificationManyInputsModel
Method Name: save
Project Name: deepmipt/DeepPavlov
Commit Name: b3a4857a297b9a405921d8c4d89dd4c0fdd4b96b
Time: 2018-06-26
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_intent_model.py
Class Name: KerasEvolutionClassificationModel
Method Name: save
Project Name: deepmipt/DeepPavlov
Commit Name: a29d4b3d9abed59b206860d02ef850a148f1f5f9
Time: 2018-05-25
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_many_inputs_model.py
Class Name: KerasEvolutionClassificationManyInputsModel
Method Name: save
Project Name: deepmipt/DeepPavlov
Commit Name: a29d4b3d9abed59b206860d02ef850a148f1f5f9
Time: 2018-05-25
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_intent_model.py
Class Name: KerasEvolutionClassificationModel
Method Name: save
Project Name: deepmipt/DeepPavlov
Commit Name: b3a4857a297b9a405921d8c4d89dd4c0fdd4b96b
Time: 2018-06-26
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_many_inputs_model.py
Class Name: KerasEvolutionClassificationManyInputsModel
Method Name: save