Skip to main content
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

Metadata

Release files for PyAI 2.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyAI 2.12
File Size Uploaded Provenance Actions
PyAI-2.12.tar.gz 12.6 kB Without provenance Details for PyAI-2.12.tar.gz

Release files / PyAI-2.12.tar.gz

Download URL PyAI-2.12.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f21e406ad2b99da27e044ae07dfae15f912c1dfbf72bc98cc79fb9889e9d5b9a
BLAKE2b-256 checksum
How to use checksums
cf07d5c39060ff7cfdf202fa37e59e46b47a27e17826b96e4efbf53927807820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PyAI 2.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page