numpy類型轉換錯誤

實在弄不懂爲什麼np.random.peermutation生成的數據回報浮點數問題?? 導致出現 IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices 解決方法: b.astype(int) 有大神知道爲
相關文章
相關標籤/搜索