Automatic Hyperparameter Optimization for Transfer Learning on Medical Image Datasets Using Bayesian Optimization