Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class RecallHistory(keras.callbacks.Callback):
  2. def on_train_begin(self, logs={}):
  3. self.recall = {}
  4.  
  5. def on_epoch_end(self, epoch, logs={}):
  6. # Compute and store recall for each class here.
  7. self.recall[...] = 42
  8.  
  9. history = RecallHistory()
  10. model.fit(..., callbacks=[history])
  11.  
  12. print(history.recall)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement