Best practices in neural network implementations