ashkonf / HybridNaiveBayes

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

Any useage example please #2

Closed xiejiachen closed 8 years ago

xiejiachen commented 8 years ago

Dear Author: Could you please give an example with your codes, maybe with sample data https://archive.ics.uci.edu/ml/machine-learning-databases/statlog/german/german.data

Thanks

ashkonf commented 8 years ago

I'm happy to put together an example using that data but I'm not sure how to interpret it. How should one interpret the file? Is each of the rows supposed to be a data point? What are the labels?

xiejiachen commented 8 years ago

Data instruction is here: https://archive.ics.uci.edu/ml/datasets/Statlog+(German+Credit+Data)

It is customer credit evaluate, label is the last column. 1 is good and 2 is bad. All othet columns are features.

ashkonf commented 8 years ago

This should do it: test.py.zip

ashkonf commented 8 years ago

Or check out this for an updated implementation: https://github.com/ashkonf/HybridNaiveBayes/blob/master/src/test.py

xiejiachen commented 8 years ago

Excited