Cross entropy and gradient calculation in neural networks | Hacker News Reader