Skip to content

AustinRochford/naive-bayes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

naive-bayes

Naive Bayes Classifier trained in Hadoop

Naive Bayes Classifier

trainer.py reads pre-classified training instances and computes the necessary probabilities to classify future data

make_data.py produces data consisting of a list of random integers in the range 1, 2,..., 10 of random length bounded above by its second argument. Its first argument specifies the number of lines of data to produce. It labels whether or not each list of integers has the property defined by the function has_property. Currently, this function indicates whether or not at least half of the integers are even.

classify.py takes probabilities computed by trainer.py as its first argument and data to classify as it second argument. It classifies the data!

About

Naive Bayes Classifier trained in Hadoop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages