https://stephenallwright.com/loss-function-vs-cost-function/
Loss function vs cost function, what’s the difference?