0
私は小さな問題がt-SNEをPythonで使っています。私は、このコマンドを使用して、その上でT-SNEを実行し、その後TSNE in sklearn python
A = np.matrix([[0.2, 0.3, 0.6, 0.8],
[0.2, 0.25, 0.55, 0.85],
[0.2, 0.3, 0.6, 0.8],
[0.64, 0.8, 0.2, 0.2],
[0.65, 0.8, 0.2, 0.2],
[0.65, 0.75, 0.2, 0.15],
[0.7, 0.8, 0.2, 0.2]])
:ここ
tsne = manifold.TSNE(n_components=2,random_state=0, metric=Distance)
、Distance
は2つの配列として取る関数である
def Distance(X,Y):
Result = spatial.distance.euclidean(X,Y)
return Result
しかし、可視化はt-sneを使用して変更されません。視覚化はマイポイント間の距離を考慮しません。
そして、私はメトリックを削除する場合:それはまだ私に同じ結果を与える
tsne = manifold.TSNE(n_components=2,random_state=0)
を...
は何か解決策はありますか?