does thoes lines are equivalent?

Does this line in Matlab
g = mdscale(dist, 2, 'criterion','metricstress');
is equivalent in python to those lines
mds=manifold.MDS(max_iter=200, eps=1e-4, n_init=1, dissimilarity="precomputed")
g=mds.fit_transform(dist)
I searched but didn't find mdscale in python and the scaling processing is done like the above lines ..Does that right?

2 件のコメント

sam mohel
sam mohel 2021 年 2 月 18 日
can someone help . please ?
Walter Roberson
Walter Roberson 2021 年 2 月 18 日
編集済み: Walter Roberson 2021 年 2 月 18 日
I am not convinced it is the same. https://stackoverflow.com/questions/36428205/stress-attribute-sklearn-manifold-mds-python says the Python one uses sigma_r but mdscale uses sigma_1

サインインしてコメントする。

回答 (0 件)

カテゴリ

タグ

質問済み:

2021 年 2 月 17 日

編集済み:

2021 年 2 月 18 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by