Skip to content

A simple python script to learn MNIST using logistic regression

License

Notifications You must be signed in to change notification settings

andycate/Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logistic Regression

This is a small python program that implements logistic regression in order to learn a subset of the MNIST dataset. It learns all the one and zero digits. I followed the concepts layed out on this website: http://ufldl.stanford.edu/tutorial/supervised/LogisticRegression/.

I have added a good amount of comments, so the code should be understandable. The hyperparameters in train.py are a good place to start messing around with the model. In order to run the program, you will need to have numpy installed. Check out http://www.numpy.org/.

Finally, I downloaded the MNIST dataset from http://yann.lecun.com/exdb/mnist/. The format of the images is described in detail on that page.

About

A simple python script to learn MNIST using logistic regression

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages