53ba8259184007268fb3e4999fa73f72fd5460db,deeppavlov/core/models/keras_model.py,KerasModel,save,#KerasModel#,221

Before Change


        opt_fname = str(fname) + "_opt.json"
        weights_fname = str(fname) + ".h5"

        opt_path = self.model_path.joinpath(opt_fname)
        weights_path = self.model_path.joinpath(weights_fname)
        print("[ saving model: {} ]".format(opt_path))
        self.model.save_weights(weights_path)

After Change


        

        opt_path = str(self.model_path) + "_opt.json"
        weights_path = str(self.model_path) + ".h5"
        print("[ saving model: {} ]".format(opt_path))
        self.model.save_weights(weights_path)

        save_json(self.opt, opt_path)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


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