Loss functions and neural networks