https://singularityfeed.com/the-math-behind-nn-bceloss-level-up-coding/