See more
To accomplish this, we will need to use function closure. We will create a loss function (with whichever arguments we like) which returns a function of y_true and y_pred.
y_true
y_pred