How to calculate F1 Macro in Keras?

后端 未结 6 1699
逝去的感伤
逝去的感伤 2020-11-28 23:13

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         


        
6条回答
  •  难免孤独
    2020-11-28 23:24

    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.

提交回复
热议问题