Sunday, June 9, 2013

Logisitic Regression in OpenCV

I finished writing a Logistic Regression classifier in OpenCV. I've seen a lot of posts on the web asking for OpenCV's version of the same but its not available. Its easy to write your own logistic regression classifier.

I separated out the cost function and gradient descent algorithm (Batch Gradient Descent). You can replace it with your own optimization algorithm.
I posted it on my Github page. You can check it out: