Bayesian Optimization for Iterative Learning