tillbe / Naive-Bayes-Python-Implementation

A simple term-frequency naive Bayes implementation in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Naive-Bayes-Python-Implementation

A simple term-frequency naive Bayes implementation in Python. Data is taken from the UCI Machine Learning Repository. Code only works with the provided data file, but can easily be adapted to work other datasets. This is a very rough implementation with lots of room for improvement. Accuracy is between 91% and 94%.

Text pre-processing is kept to a minimum, but accuracy could potentially improved by removing non alphanumeric characters via regex.

About

A simple term-frequency naive Bayes implementation in Python


Languages

Language:Python 100.0%