i\'ve tried to use the codes given from Keras before they\'re removed. Here\'s the code :
def precision(y_true, y_pred): true_positives = K.sum(K.round(K
As what @Pedia has said in his comment above, on_epoch_end,as stated in the github.com/fchollet/keras/issues/5400 is the best approach.
on_epoch_end