How to train a neural network: An introduction to the new computational paradigm