I am very new using python. I would like to implement a custom metric for Keras sequential model.
In R, I used this following code:
pred_error <- (data$