You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there was an earlier version that did something like this, but I think the current solution is better numerically when y is close to 1 or 0. But perhaps investigating this (eg by comparing to a higher precision float, or BigFloat) and also benchmarking could be worthwhile.
I noticed this bit of code:
There's a neat trick that can speed this up. If we write
σ=logistic
(for brevity) thenσ'=σ*(1-σ)
So something like
The text was updated successfully, but these errors were encountered: