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
The current implementation of the sigmoid() function can get a RuntimeWarning overflow in cnn.py at line 29 numpy.exp():
"return 1.0 / (1 + numpy.exp(-1 * sop))"
To avoid/correct the overflow, use:
"return numpy.exp(-numpy.logaddexp(0, -sop))"
The text was updated successfully, but these errors were encountered:
It is just a warning and NumPy is able to handle the situation. It happens when a large number like 1234.1234 is fed to the numpy.exp() function. This does not affect the result.
The current implementation of the sigmoid() function can get a RuntimeWarning overflow in cnn.py at line 29 numpy.exp():
"return 1.0 / (1 + numpy.exp(-1 * sop))"
To avoid/correct the overflow, use:
"return numpy.exp(-numpy.logaddexp(0, -sop))"
The text was updated successfully, but these errors were encountered: