joelgrus / data-science-from-scratch

code for Data Science From Scratch book
MIT License
8.71k stars 4.52k forks source link

Overflow error for logistic gradient descent example #20

Open geanders opened 8 years ago

geanders commented 8 years ago

I'm not 100% sure I had all of my code in correctly by this point, but I got an overflow error when I tried to fit the logistic model example using gradient descent on p. 194. This seemed to stem from an overflow problem with running the logistic_log_partial_ij function. I did not have this problem when fitting the model with stochastic gradient descent.