Backpropagation algorithm which varies the number of hidden units