I was playing a bit with the logistic regression. I implemented the code essentially pretty much following Andrew Ng course. I have a code for the cost function, I do the minimi