Skip to content

nicolov/naive_bayes_tensorflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages