Neural Network Model with Optimal Regularization