【发布时间】:2018-02-25 14:06:36
【问题描述】:
我尝试使用 Python sklearn 对 Breast_canser 数据集进行主成分分析。 并且无法理解为什么特征向量的两个点积(3 个分量)都不是零?
frst = pca.components_[0,:]
scnd = pca.components_[1,:]
thrd = pca.components_[2,:]
orth1 = np.dot(frst,scnd)
orth2 = np.dot(scnd, thrd)
print(orth1.real)
print(orth2.real)
出来:
0.0
1.52655665886e-16
【问题讨论】:
标签: python scikit-learn pca eigenvector orthogonal