Linear Classifiers for MNIST and MS2CD datasets using perceptron algorithms