Hyperparameter optimization using Bayesian optimization on transfer learning for medical image classification