0 votes

Hello,

I'm trying to use the Predefined code in python 2.7 but whe I run the Setup and dataset loading code , I see an error
No module named pyLDAvis.sklearn ,
Do you know how to solve this?
Thanks

 

 

Setup and dataset loading 

First of all, let's load the libraries that we'll use.

This notebook requires the installation of the pyLDAvis package. See here for help with intalling python packages.

In [1]:

Populating the interactive namespace from numpy and matplotlib
ImportErrorTraceback (most recent call last)
<ipython-input-1-f0e756363047> in <module>()
      9 
     10 from sklearn.decomposition import LatentDirichletAllocation,NMF
---> 11 import pyLDAvis.sklearn
     12 pyLDAvis.enable_notebook()

ImportError: No module named pyLDAvis.sklearn
by
I understand that the problem is that I need to install  the pyLDAvis package
Indeed, as is indicated in the code of the notebook that you pasted.
"This notebook requires the installation of the pyLDAvis package. See here for help with intalling python packages."

Please follow that link for instructions.

Please log in or register to answer this question.

1,213 questions
1,246 answers
1,407 comments
11,780 users

©Dataiku 2012-2018 - Privacy Policy