如何将从距离矩阵中找到的坐标转换为正坐标?

2024-04-20 13:32:11 发布

您现在位置:Python中文网/ 问答频道 /正文

import numpy as np
import matplotlib.pyplot as plt
import time
from sklearn.decomposition import PCA

t = np.random.randint(0, 50, (10, 10)) 
X = tpca = PCA(n_components=2) 
X3d = pca.fit_transform(X) 
X3d= np.round(X3d, 2) 
print (X3d)

如何将从距离矩阵中找到的坐标转换为正坐标