def mde(y_true, y_pred):
    return K.mean(K.cast(K.abs((K.argmax(y_true, axis=1) - K.argmax(y_pred, axis=1))), K.floatx()))
def mde(y_true, y_pred):
    return K.mean(K.cast(K.abs((K.argmax(y_true, axis=1) - K.argmax(y_pred, axis=1))), K.floatx()))