Model Selection and Adaptation of Hyperparameters