Neural networks and regularization