I hope someone can help me. I did an implementation of logistic regression from scratch (so without library, except numpy in Python).
I used MNIST dataset as input, and decided to try (since I am doing binary classification) a test on only two digits: 1 and 2. My code can be found here
The notebook should run on any system that have the necessary library installed.
Somehow my cost function is not converging. I am getting error since my A (my sigmoid) is getting equal to 1, since z is getting very big.
I tried everything but I don't see my error. Can anyone give a look and let me know if I missed something obvious? The point here is not getting a high accuracy. Is getting the model to converge to something ;)
Thanks in advance, Umberto