Efficient Machine Learning on Scientific Data Using Bayesian Optimization