Note that this tuning depends on the starting point of the model parameters and is not guaranteed to converge to the global optimum on the training data.
this approach is limited to a very small number of model parameters.