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

Python Machine Learning Framework

Project Description
A generic python machine learning framework designed to be flexible and easy to use. It is built upon scikit-learn, numpy, scipy, and some custom written algorithms.

New in version 2.x:

Complete rewrite of main codebase in order to ease in adding new algorithms and much cleaner code

To test it, simply run:

import PyAI

PyAI.test()


The main object in the library is the Brain class (PyAI.Brain). With it you access all of the features in the framework.

brain = PyAI.Brain(x_data=data, y_labels=labels, y_data=reg_data)

| This brain object has 2 modes of operation: classification and regression.
| If you wish to perform classification (discrete) prediction, use the y_labels attribute
| If you wish to perform regression (continuous) prediction, use the y_data attribute
Or you can also provide both

| Then, you must initialize one of the algorithms available by performing:

brain.init_XXX()
# For example
brain.init_clustering(n_clusters=5)

Currently, the available algorithms are

- clustering
- neighbors
- svm
- gmm
- naive_bayes

Then you can apply any number of prediction methods in order to predict using the models

brain.predict_xxx_yyy
# For example
brain.predict_cluster_labels(test_data)
brain.predict_svm_data(test_data)

| The xxx must match on of the algorithms that you have initialized
| The yyy can either be 'labels' or 'data' for classification and regression respectively
Release History

Release History

This version
History Node

2.12

History Node

2.11

History Node

2.1

History Node

2.0

History Node

0.91

History Node

0.9

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
PyAI-2.12.tar.gz (12.6 kB) Copy SHA256 Checksum SHA256 Source Aug 22, 2015

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