Public Member Functions | List of all members
my_callbacks.MyCallback Class Reference
Inheritance diagram for my_callbacks.MyCallback:

Public Member Functions

def on_epoch_end (self, epoch, logs={})
 

Detailed Description

Definition at line 192 of file my_callbacks.py.

Member Function Documentation

def my_callbacks.MyCallback.on_epoch_end (   self,
  epoch,
  logs = {} 
)

Definition at line 193 of file my_callbacks.py.

193  def on_epoch_end(self, epoch, logs={}):
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
200  return
201 
def on_epoch_end(self, epoch, logs={})

The documentation for this class was generated from the following file: