What does the following error:
Warning: overflow encountered in exp
in scipy/numpy using Python generally mean? I\'m computing a ratio in log
I think you can use this method to solve this problem:
Normalized
I overcome the problem in this method. Before using this method, the accuracy my classify is :86%. After using this method, the accuracy of my classify is :96%!!!
It's great!
first:
Min-Max scaling
second:
Z-score standardization
These are common methods to implement normalization
.
I use the first method. And I alter it. The maximum number is divided by 10.
So the maximum number of the result is 10. Then exp(-10) will be not overflow
!
I hope my answer will help you !(^_^)