0
私は、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
[浮動小数点演算が壊れていますか?](https://stackoverflow.com/questions/588004/is-floating-point-math-broken) – Sneftel