我有两个数据集(X_train,Y_train,X_label,Y_label),我想根据它们的相似性将(X_train)和(Y_train)投影到新空间上。
我想在这个投影之后得到(X'_train)和(Y'_train)。 我想在此投影上使用嵌入。
y
在嵌入投影之后,
我想获得新的向量(X'_train)和(Y'_train)。 n是维数,可以在2到26之间。
For instance:
X_train.shape = 5000 * 27
Y_train.shape = 5000 * 29
X_train = array([[8.31831611e-01, 5.54554407e-01, 6.25614806e-03, ...,
7.08517689e-03, 7.61918855e-03, 1.50771435e-03],
[3.36307774e-01, 9.41661767e-01, 2.31936396e-03, ...,
3.69725248e-03, 2.88847605e-03, 2.59154316e-03],
[9.89928377e-01, 1.36541845e-01, 6.67014761e-03, ...,
1.01877152e-02, 1.47227442e-02, 3.30953226e-04]])
Y_train =
array([[0.01637161, 0.01994463, 0.85155001, ..., 0.07053801],
[0.0151852 , 0.01957402, 0.85830792, ..., 0.06863835, 0.10161352 ],
[0.01637763, 0.01788614, 0.8557828 , ..., 0.06964044, 0.10264979 ]])