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)
如何将从距离矩阵中找到的坐标转换为正坐标
您可以使用绝对、导入数学库和使用
abs()
。 例如:输出:
相关问题 更多 >
编程相关推荐