Adaptive regression and model selection in data mining problems