9bcf05406490ca72b698db24636e5f2a51a5c82a,neuron/callbacks.py,ModelCheckpoint,on_model_save,#ModelCheckpoint#Any#Any#Any#,112
Before Change
self.current_epoch = epoch
def on_model_save(self, epoch, iter, logs=None):
print("save callback")
logs = logs or {}
self.steps_since_last_save += 1
if self.steps_since_last_save >= self.period:
self.steps_since_last_save = 0
After Change
def on_model_save(self, epoch, iter, logs=None):
save the model to hdf5. Code mostly from keras core
with timer.Timer("model save callback", self.verbose) :
logs = logs or {}
self.steps_since_last_save += 1
if self.steps_since_last_save >= self.period:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: adalca/neuron
Commit Name: 9bcf05406490ca72b698db24636e5f2a51a5c82a
Time: 2017-06-14
Author: adalca@sumac.csail.mit.edu
File Name: neuron/callbacks.py
Class Name: ModelCheckpoint
Method Name: on_model_save
Project Name: home-assistant/home-assistant
Commit Name: 665436cd910035b25805fa62b63f357c6eeef37e
Time: 2015-11-10
Author: leoc.git@gmail.com
File Name: homeassistant/components/light/zwave.py
Class Name: ZwaveDimmer
Method Name: _value_changed
Project Name: adalca/neuron
Commit Name: 9bcf05406490ca72b698db24636e5f2a51a5c82a
Time: 2017-06-14
Author: adalca@sumac.csail.mit.edu
File Name: neuron/callbacks.py
Class Name: PredictMetrics
Method Name: on_metric_call