Bayesian Optimization by Density Ratio Estimation