from keras.callbacks import Callback
history = LossHistory()
class LossHistory(Callback):
def on_train_begin(self, logs={}):
self.losses = []
def on_batch_end(self, batch, logs={}):
self.losses.append(float(logs.get('loss')))
--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/2d04be81-5847-4bd6-a7c7-b2e1c8dfce0d%40googlegroups.com.