4cde148de0c37981c50f3a8e4a59fa4e5f653e17,keras/models.py,Sequential,save_weights,#Sequential#Any#Any#,742
Before Change
else:
layers = self.layers
f = h5py.File(filepath, "w")
topology.save_weights_to_hdf5_group(f, layers)
f.flush()
f.close()
def compile(self, optimizer, loss,
metrics=None,
sample_weight_mode=None,
After Change
else:
layers = self.layers
with h5py.File(filepath, "w") as f:
topology.save_weights_to_hdf5_group(f, layers)
f.flush()
def compile(self, optimizer, loss,
metrics=None,
sample_weight_mode=None,
weighted_metrics=None,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: keras-team/keras
Commit Name: 4cde148de0c37981c50f3a8e4a59fa4e5f653e17
Time: 2018-02-04
Author: bohumir.zamecnik@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: save_weights
Project Name: keras-team/keras
Commit Name: d03a41b4262e6aab8ad56cd8395808cacf5921e3
Time: 2017-07-29
Author: inexxt@users.noreply.github.com
File Name: keras/models.py
Class Name:
Method Name: save_model
Project Name: keras-team/keras
Commit Name: 4cde148de0c37981c50f3a8e4a59fa4e5f653e17
Time: 2018-02-04
Author: bohumir.zamecnik@gmail.com
File Name: keras/engine/topology.py
Class Name: Container
Method Name: save_weights