显示错误提示如下:
Flsf.py:92: RuntimeWarning: overflow encountered in exp
RP += (np.exp(M_PS[row_C, n]) - np.exp(-M_PS[row_C, n])) / (np.exp(M_PS[row_C, n]) + np.exp(-M_PS[row_C, n]))
Flsf.py:92: RuntimeWarning: invalid value encountered in double_scalars
RP += (np.exp(M_PS[row_C, n]) - np.exp(-M_PS[row_C, n])) / (np.exp(M_PS[row_C, n]) + np.exp(-M_PS[row_C, n]))

如何解决RuntimeWarning: overflow encountered in exp?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-