From the comment section for the benefit of the community.
> This is not specific to `focal loss`, all keras loss functions take
> `y_true` and `y_pred`, you do not need to worry where those parameters are
> coming from, they are fed by `keras` automatically.