Definition at line 192 of file my_callbacks.py.
def my_callbacks.MyCallback.on_epoch_end |
( |
|
self, |
|
|
|
epoch, |
|
|
|
logs = {} |
|
) |
| |
Definition at line 193 of file my_callbacks.py.
194 current_lr = K.get_value(self.model.optimizer.lr)
195 print "Learning rate:", current_lr
196 new_lr = current_lr * 0.95
197 K.set_value(self.model.optimizer.lr, new_lr)
198 new_lr = K.get_value(self.model.optimizer.lr)
199 print "New learning rate:", new_lr
def on_epoch_end(self, epoch, logs={})
The documentation for this class was generated from the following file: