问题描述
我使用sklearn像这样缩放一个numpy数组:
from sklearn.preprocessing import scale
# Normalizing
if normalize:
for b in range(n_batches):
for i in range(n_samples):
for c in range(n_colors):
temp_interp[b,i,:,c] = scale(temp_interp[b,c])
我遇到此用户警告错误:
Numerical issues were encountered when scaling the data and might not be solved. The standard deviation of the data is probably very close to 0.
为什么会出现此错误?我怎样才能解决这个问题?当我使用带有此错误警告的缩放数据训练CNN时,有多重要?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)