def mape_didi(y_true, y_pred): M= T.switch(T.lt(y_true, 0.8),1000000000, y_true) return K.mean(K.abs(y_true-y_pred)/M, axis=-1)