No Module Named Naivebayes
The code we are implementing is from NaiveBayes import Pool import os DClasses = ['python', 'java', 'hadoop', 'django', 'datascience', 'php'] base = 'learn/' p = Pool() fo
Solution 1:
The code does not seem to be from the scikit-learn Naive Bayes algorithms, which, in any case, do not have a Pool
attribute or method.
It seems you are trying to use another NaiveBayes library, in which case your import should be
fromNaiveBayes.PoolimportPool
as shown in the example there. But the message implies that you have not installed it; try from the shell
git clone https://github.com/yveskaufmann/Naive-Bayes
in your current directory (see also the documentation for cloning Github repos).
Post a Comment for "No Module Named Naivebayes"