Keras: custom loss function with final MAX, instead of standard MEAN

后端 未结 0 667
情书的邮戳
情书的邮戳 2021-02-12 07:46

I write my own loss function (it is the standard mean absolute error):

def my_mae(y_true, y_pred):
    return K.max(K.abs(y_true - y_pred), axis=-1, keepdims=True         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题