I have a document Term matrix with nine documents:
I am running the code as below:
import pyLDAvis.gensim
topicData = pyLDAvis.gensim.prepare(ldamodel, docTermMatrix, dictionary)
pyLDAvis.display(topicData)
I am getting the below error when executing pyLDAvis.display function:
TypeError: Object of type 'complex' is not JSON serializable
Can someone guide here? What could be the reason?
mds='tsne'
, which also solved the problem. – Yacketyyak