Definition at line 202 of file my_callbacks.py.
def my_callbacks.InceptionV4Callback.on_train_begin |
( |
|
self, |
|
|
|
logs = {} |
|
) |
| |
Definition at line 203 of file my_callbacks.py.
204 current_lr = K.get_value(self.model.optimizer.lr)
205 print "Learning rate:", current_lr
206 new_lr = current_lr * 0.94
207 K.set_value(self.model.optimizer.lr, new_lr)
208 new_lr = K.get_value(self.model.optimizer.lr)
209 print "New learning rate:", new_lr
def on_train_begin(self, logs={})
The documentation for this class was generated from the following file: