Classified Regression for Bayesian Optimization: Robot Learning with Unknown Penalties