Automatic learning algorithm selection for classification via convolutional neural networks