How to Evaluate Machine Learning Models: Hyperparameter Tuning
blog.dato.com
blog.dato.com
To prevent overfitting to the training data, one performs hold-out validation or cv or early stopping in the training process.
To prevent overfitting of hyperparameters to a small validation dataset, or to mitigate the variance of the model training outcome, one can use nested cv.
Is that along the lines of you were looking for?
The main difficulty with hyperparameters is that one often does not actually know a priori a reasonable range to search in. Suppose you have a regularisation constant C - without some calculation based on your data how can you pick that constant? By picking the range of the hyperparameter, the problem is just punted to a hyperhyperparameter.
More interesting than blindly guessing values, is measuring the sensitivity of recall, precision and cross validation performance to changes in the hyperparameters. Make sure that the sensitivity is low!