Hi Noel,thanks for sharing. We did something similar in ChemicalToolBox to display an NxN matrix with mds.https://github.com/bgruening/galaxytools/blob/master/chemicaltoolbox/ctb_machine_learning/mds_plot.pyThe input matrix on the other hand can be created for example with chemfp.Cheers,Bjoern Nice. One more reason for me to hurry up and try out ChemicalToolBox.I remember with R that I used to use cmdscale, classical MDS, which is slightly different. I wonder if scikit-learn intends to implement this… Hi Noel,nice post, very inspiring!I’m currently looking for a dataset like yours, displaying distance between cities in Europe. May I ask where you found yours? Thxs in advance! Hello,Thank you for sharing this code. Do you know the differences between an euclidean and a precomputed dissimilarity ? How to choose between both of them ?Thanks, The input to ‘fit’ depends on the choice. If precomputed, you pass a distance matrix, if euclidean, you pass a set of feature vectors and it uses the Euclidean distance between them as the distances. (To my mind, this is just confusing.) Hi Noel,Very nice post and I found something I was looking for.I have used PCA for my analysis and would like to know if you have any idea what is the difference between PCA nad NMDS. How to choose between both of them ?Thanks! The method described here reproduces a distance matrix in a lower dimension. PCA leaves the points where they are (at all the same distances – many people seem unaware of this) but rotates the axes so that the first one points along the direction of greatest variance, the second one along the next direction of variance, and so on. Which one is right for you depends on what you want to do. Source.