TypeError: Object of type 'complex' is not JSON serializable

    [python] TypeError: Object of type 'complex' is not JSON serializable

    [python] TypeError: Object of type 'complex' is not JSON serializable

    pyLDAvis.display() 사용중 LDA 결과 내용을 보여주려했는데 다음과 같은 타입에러가 났다. TypeError: Object of type 'complex' is not JSON serializable 내가사용한 LDA display 코드 import pyLDAvis.gensim topicData = pyLDAvis.gensim.prepare(ldamodel, docTermMatrix, dictionary) pyLDAvis.display(topicData) prepare 부분 뒤에 mds 를 지정하면 display가 된다. pyLDAvis.gensim.prepare(ldamodel, docTermMatrix, dictionary, mds='mmds') 결과