Hyperparameter tuning using Bayesian optimization