Overflow in exp in scipy/numpy in Python?

前端 未结 5 1696
谎友^
谎友^ 2021-02-05 04:45

What does the following error:

Warning: overflow encountered in exp

in scipy/numpy using Python generally mean? I\'m computing a ratio in log

5条回答
  •  深忆病人
    2021-02-05 05:31

    In my case, it was due to large values in the data. I had to normalize (divide by 255, because my data was related to images) to get the values scaled down.

提交回复
热议问题