itdxer / naive-bayes

Naive Bayes Text Classifier
MIT License
12 stars 4 forks source link

ImportError: No module named skll.metrics #1

Open v71017 opened 7 years ago

v71017 commented 7 years ago

After running , I am not getting result in predictedData.csv. "sentiment" column is all set 0

"This module will be removed in 0.20.", DeprecationWarning)

Read train data Init classifier Read test data Train classifier

/Users/vpati/Intuit_project/ml/naive-bayes/naivebayes/init.py:35: RuntimeWarning: divide by zero encountered in log Total : 25000 articles 1 / (words_in_categories + number_of_words) Number of words : 74704 words Parse time : 36.77 seconds

Start classify data /Users/vpati/Intuit_project/ml/naive-bayes/naivebayes/init.py:64: RuntimeWarning: invalid value encountered in multiply probabilities += (ignored_words_number.T * self.min_category_prob) Save predicted results /Users/vpati/Intuit_project/ml/naive-bayes/examples/imdb_reviews/data/predictedData.csv

Computation time : 47.50 seconds

Process finished with exit code 0

itdxer commented 7 years ago

Hi @v71017, This is the library that you are missing: https://github.com/EducationalTestingService/skll

$ pip install skll

Also, I'm not supporting this library anymore, so I won't be able to fix bugs