Logistic Regression using Python (Sklearn, NumPy, MNIST, Handwriting Recognition, Matplotlib)

@machinelearnbot 

One of the first models I learned when I started my data science journey was Logistic Regression. The name Logistic Regression is highly misleading. Logisitic regression actually is a classification algorithm and not a regression algorithm. Logistic regression can be used to solve problems like classifying images. The image above shows a bunch of training digits (observations) from the MNIST dataset whose category membership is known (labels 0–9).