Divide by Zero (Exercise 3)
jessestauffer opened this issue · comments
Love these machine learning exercises! Just completed exercise 3 but came across one issue in the regularized cost function. I'm getting a divide by 0 error in the second
var. I assumed this is because log(0) is undefined. Any way around this?
When i compile w/ Python 2.7 the accuracy is around 97% but only 76% when compiled with Python 3.
same problem!
Love these machine learning exercises! Just completed exercise 3 but came across one issue in the regularized cost function. I'm getting a divide by 0 error in the
second
var. I assumed this is because log(0) is undefined. Any way around this?When i compile w/ Python 2.7 the accuracy is around 97% but only 76% when compiled with Python 3.
did u find the solution?iam facing the same problem