bmabey / pyLDAvis

Python library for interactive topic model visualization. Port of the R LDAvis package.
BSD 3-Clause "New" or "Revised" License
1.8k stars 361 forks source link

Fix: lda_module support for matrix and np.ndarray #257

Closed santiagxf closed 9 months ago

santiagxf commented 1 year ago

With the latest version of scikit-learn, LDA model doesn't support np.matrix any more and vectors should be casted to np.ndarray. However, lda_model rely on this data type to compute same values. This PR ensure the library work with both np.matrix and np.ndarray.