Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RecallHistory(keras.callbacks.Callback):
- def on_train_begin(self, logs={}):
- self.recall = {}
- def on_epoch_end(self, epoch, logs={}):
- # Compute and store recall for each class here.
- self.recall[...] = 42
- history = RecallHistory()
- model.fit(..., callbacks=[history])
- print(history.recall)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement