I have a neural network in Keras that takes 23 inputs for 1 output in a regression task. I want to build a custom loss function, that has an extra term if some condition of