Bayesian Optimization with Machine Learning Algorithms Towards Anomaly Detection