Data Science, Loss Function, Machine Learning, Neural Networks, TensorFlow.
include a wrapper function, as TF will not allow you to have more than 2 parameters in your loss function. def custom_loss_with_threshold (threshold = 1): def custom_loss (y_true, y_pred): pass #Implement loss function - can call the threshold variable return custom_loss Implementation In Image