Machine learning digit recognition written in Octave using logistic regression