Friday, February 15, 2013

Logistic Regression in python

I wrote a Logistic Regression classisifier in Python using Numpy.

You can checkout the source code for the Logistic Regression classifier here

Its a multi-class classifier written in Python (uses a one vs rest kind of classification strategy). It also works for 2 class data-sets.

It uses Conjugate/Batch Gradient Descent to learn the parameters of the Logistic Regression. You can edit it to make it work with optimization module in Scipy.

You can clone the source using the following command: