jdwittenauer / ipython-notebooks

A collection of IPython notebooks covering various topics.
2.61k stars 1.51k forks source link

Divide by Zero (Exercise 3) #8

Closed jessestauffer closed 2 years ago

jessestauffer commented 7 years ago

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.

abi98213 commented 6 years ago

same problem!

AhmedGabal commented 6 years ago

what is the problem Mohamed i don't understand this massage . and i entered the Github found the solution and i don't understand the problem.

On Fri, Jan 26, 2018 at 9:12 AM, Muhammad Abdullah <notifications@github.com

wrote:

same problem!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jdwittenauer/ipython-notebooks/issues/8#issuecomment-360701863, or mute the thread https://github.com/notifications/unsubscribe-auth/AgwvMxKVviQtTnaYTzRllgipliQExTM9ks5tOXrhgaJpZM4M85LY .

AhmedGabal commented 6 years ago

are you finished 4 tasks ?

On Sun, Jan 28, 2018 at 10:49 PM, ahmed gabal ahmed.gabal1994@gmail.com wrote:

what is the problem Mohamed i don't understand this massage . and i entered the Github found the solution and i don't understand the problem.

On Fri, Jan 26, 2018 at 9:12 AM, Muhammad Abdullah < notifications@github.com> wrote:

same problem!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jdwittenauer/ipython-notebooks/issues/8#issuecomment-360701863, or mute the thread https://github.com/notifications/unsubscribe-auth/AgwvMxKVviQtTnaYTzRllgipliQExTM9ks5tOXrhgaJpZM4M85LY .

Karthikb1999 commented 4 years ago

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