I have a matrix of word co-occurrence, like below. I'd like to use MDS to reduce the dimension and plot it. In sklearn there's a function model = MDS(n_components=2, dissimilarity='precomputed', random_state=1)
and to apply the model output = model.fit_transform(input)
My understanding is the input should be a dissimilarity matrix instead of the similarity one that I have. Is that correct? Is there a function that I could use to convert this co-occurrence dissimilarity matrix? I'm quite new to this. Many thanks for your help.
co-occurrence matrix :
word1 word2 word3 ...
word1. 0 1 3
word2 1 0 5
word3 3 5 1
...