ashkonf / HybridNaiveBayes

A generalized implementation of the Naive Bayes classifier in Python.
MIT License
25 stars 4 forks source link

Hey author, It seems not work in python3 #3

Closed xiejiachen closed 8 years ago

xiejiachen commented 8 years ago

I just tried to convert it to python 3 codes, but it there is an error report:

slice indices must be integers or None or have an __index__ method

codes And also, could you please give some suggestions about how to print every category variables conditional probabilities based on these codes and output prediction results.

ashkonf commented 8 years ago

This library doesn't support Python 3.

The conditional probabilities of features are stored in the classifier's "distributions" property.