The backpropagation algorithm is the classical approach to 'train' ANN including different architectures of ANN such us CNN, RNN etc.