Naive Bayes classifiers in TensorFlow
Switch branches/tags
Nothing to show
Clone or download
Latest commit e505e6e Nov 5, 2017
Permalink
Failed to load latest commit information.
.gitignore Initial commit Nov 5, 2017
README.md Initial commit Nov 5, 2017
iris_sklearn.png Initial commit Nov 5, 2017
requirements.txt Initial commit Nov 5, 2017
sklearn_iris.py Initial commit Nov 5, 2017
tf_iris.png Initial commit Nov 5, 2017
tf_iris.py Initial commit Nov 5, 2017

README.md

Naive Bayes classifiers in TensorFlow

A simple Naive Bayes classifier in TensorFlow 1.4. It's a tidy demonstration of tf.distributions and some unusual tensor operations.

For more information, you can read the blog post.

Getting started

Prepare the Python environment:

# Create a new virtualenv
mkvirtualenv env
source env/bin/activate
# Install requirements
pip install -r requirements.txt

And run the classifier:

python tf_iris.py