std = sqrt(mean(abs(x - x.mean())**2)). 上面為標準差公式,但用 std() 就可以快速的算出來啦: x = np.array([[1, 2], [3, 4]]) np.std(x). Imgur. 參考資料:
確定! 回上一頁