A Resizable Mini-batch Gradient Descent based on a Multi-Armed Bandit