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

Public Member Functions

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

Detailed Description

Definition at line 212 of file my_callbacks.py.

Member Function Documentation

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

Definition at line 213 of file my_callbacks.py.

213  def on_epoch_end(self, epoch, logs={}):
214  if epoch % 2 == 1:
215  current_lr = K.get_value(self.model.optimizer.lr)
216  print "Learning rate:", current_lr
217  new_lr = current_lr * 0.94
218  K.set_value(self.model.optimizer.lr, new_lr)
219  new_lr = K.get_value(self.model.optimizer.lr)
220  print "New learning rate:", new_lr
221  return
def on_epoch_end(self, epoch, logs={})

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