Bayesian optimization for automated model selection