Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Abstracted naive Bayes classifier for rest of us (Requires Python 2.7 or later)

Project Description
Classy: A naive bayes classifier package for Python

Bayes all the things!

Classy is an MIT licensed library written in Python.

Classy is built for document classification with web application usage in mind. Classy simplifies
the process down for you, so all you need to do is train it.


>>> c = Classy()
>>> c.train(['cpu', 'RAM', 'ALU', 'io', 'bridge', 'disk'], 'architecture')
>>> c.train(['monitor', 'mouse', 'keyboard', 'microphone', 'headphones'], 'input_devices')
>>> c.train(['desk', 'chair', 'cabinet', 'lamp'], 'office furniture')
>>> my_office = ['cpu', 'monitor', 'mouse', 'chair']
>>> c.classify(my_office)
('input_devices', -1.0986122886681098)

Classy has been designed with flexibility in mind, so it will work with any range of uses- blog entry categorization, ir systems,
tag clouds, recommendation engines and so on. Classy treats each document as a "bag of words" and is thus agnostic to content.


- Being Awesome


To install on your machine: ::

$ pip install Classy

or: ::

$ easy_install Classy

(But you should use pip)


#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.
#. Fork the `repository`_ on Github to start making your changes to the **develop** branch (or branch off of it).
#. Write a test which shows that the bug was fixed or that the feature works as expected.
#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to `AUTHORS`_.

README shamelessly ripped from `requests`_

.. _`repository`:
.. _`AUTHORS`:
.. _`requests`:

.. :changelog:


0.0.3 - (2012-05-10)

* Working out packaging/pypi kinks

0.0.2 (2012-05-10)


0.0.1 (2012-04-30)

* A whole new world
Release History

Release History

This version
History Node

History Node

History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Classy- (3.7 kB) Copy SHA256 Checksum SHA256 Source May 11, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting