Home | History | Annotate | Download | only in keras

Lines Matching refs:epoch

72   def on_epoch_begin(self, epoch, logs=None):
73 """Called at the start of an epoch.
76 epoch: integer, index of epoch.
81 callback.on_epoch_begin(epoch, logs)
86 def on_epoch_end(self, epoch, logs=None):
87 """Called at the end of an epoch.
90 epoch: integer, index of epoch.
95 callback.on_epoch_end(epoch, logs)
101 batch: integer, index of batch within the current epoch.
121 batch: integer, index of batch within the current epoch.
175 the current batch or epoch.
201 def on_epoch_begin(self, epoch, logs=None):
204 def on_epoch_end(self, epoch, logs=None):
222 """Callback that accumulates epoch averages of metrics.
228 should *not* be averaged over an epoch.
237 def on_epoch_begin(self, epoch, logs=None):
255 def on_epoch_end(self, epoch, logs=None):
292 should *not* be averaged over an epoch.
314 def on_epoch_begin(self, epoch, logs=None):
316 print('Epoch %d/%d' % (epoch + 1, self.epochs))
349 def on_epoch_end(self, epoch, logs=None):
368 self.epoch = []
371 def on_epoch_end(self, epoch, logs=None):
373 self.epoch.append(epoch)
380 """Save the model after every epoch.
383 which will be filled the value of `epoch` and
386 For example: if `filepath` is `weights.{epoch:02d}-{val_loss:.2f}.hdf5`,
387 then the model checkpoints will be saved with the epoch number and
447 def on_epoch_end(self, epoch, logs=None):
452 filepath = self.filepath.format(epoch=epoch + 1, **logs)
462 ' saving model to %s' % (epoch + 1, self.monitor, self.best,
471 print('\nEpoch %05d: %s did not improve' % (epoch + 1,
475 print('\nEpoch %05d: saving model to %s' % (epoch + 1, filepath))
545 def on_epoch_end(self, epoch, logs=None):
558 self.stopped_epoch = epoch
563 print('Epoch %05d: early stopping' % (self.stopped_epoch + 1))
571 Events are sent to `root + '/publish/epoch/end/'` by default. Calls are
584 path='/publish/epoch/end/',
594 def on_epoch_end(self, epoch, logs=None):
599 send['epoch'] = epoch
616 schedule: a function that takes an epoch index as input
627 def on_epoch_begin(self, epoch, logs=None):
630 lr = self.schedule(epoch)
637 'rate to %s.' % (epoch + 1, lr))
759 def on_epoch_end(self, epoch, logs=None):
766 if epoch % self.histogram_freq == 0:
793 self.writer.add_summary(summary_str, epoch)
803 self.writer.add_summary(summary, epoch)
895 def on_epoch_end(self, epoch, logs=None):
921 'rate to %s.' % (epoch + 1, new_lr))
932 """Callback that streams epoch results to a csv file.
970 def on_epoch_end(self, epoch, logs=None):
986 # We set NA so that csv parsers do not fail for this last epoch.
996 fieldnames=['epoch'] + self.keys,
1001 row_dict = OrderedDict({'epoch': epoch})
1020 `epoch`, `logs`
1027 on_epoch_begin: called at the beginning of every epoch.
1028 on_epoch_end: called at the end of every epoch.
1041 # Stream the epoch loss to a file in JSON format. The file content
1046 on_epoch_end=lambda epoch, logs: json_log.write(
1047 json.dumps({'epoch': epoch, 'loss': logs['loss']}) + '\n'),
1077 self.on_epoch_begin = lambda epoch, logs: None
1081 self.on_epoch_end = lambda epoch, logs: None