实在弄不懂为什么np.random.peermutation生成的数据回报浮点数问题??
导致出现
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
解决方法: b.astype(int)
有大神知道为什么吗?
实在弄不懂为什么np.random.peermutation生成的数据回报浮点数问题??
导致出现
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
解决方法: b.astype(int)
有大神知道为什么吗?
相关文章: