Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的代码需要永远执行。可能是由于字典的大小。有没有办法让它更快,例如裁剪可视化数据?
vis = pyLDAvis.gensim.prepare(lda, corpus, id2word)
似乎默认的 mds 算法(pcoa)不稳定。使用不同的算法(例如mmds)可以更快:
vis = pyLDAvis.gensim.prepare(lda, corpus, id2word, mds='mmds') pyLDAvis.show(vis)