Python Numpy庫 numpy.corrcoef()函數講解

例子: 代碼: import numpy as np Array1 = [[1, 2, 3], [4, 5, 6]] Array2 = [[11, 25, 346], [734, 48, 49]] Mat1 = np.array(Array1) Mat2 = np.array(Array2) correlation = np.corrcoef(Mat1, Mat2) print("矩陣1=\n"
相關文章
相關標籤/搜索