Numpy AI
Numpy AI is a complete artificial intelligence library built from scratch using pure Python and Numpy. It aims to provide clear reference implementations of many algorithms for educational purposes.
The current documentation for the project can be accessed here.
Key Features
- Keras-style Neural Networks: Build complex architectures like CNNs using intuitive sequential models. Supports advanced layers and multiple optimisers to give complete control over training.
- Classical Machine Learning: A growing suite of
scikit-learnstyle estimators. Currently supports a full range of Naive Bayes classifiers. - Pure Numpy Backend: Every algorithm is implemented from scratch using Numpy for maximum transparency and vectorised performance.
Installation
Install the latest version from PyPI using pip:
pip install numpy-ai-kit
Then, you can import and use numpyai. See the wiki for more details and example usage.
Project Roadmap
Numpy AI is actively expanding to become a general-purpose AI toolkit. The following modules are currently under development:
Neural Networks
- Datasets: Additional sample datasets including CIFAR-10, CIFAR-100, and Fashion MNIST
- Layers: More layer types including Batch Normalisation
- Infrastructure: Learning rate schedulers for improved training stability and training callbacks/logging capability
Utilities
- Preprocessing: Encoders, scalers, and binarisers for preprocessing data
- Feature Extraction: Vectorisers, feature hasher, HOG (Histogram of Oriented Gradients)
- Backend: Generic graph implementation for use with search algorithms
Classical ML
- Supervised: Linear/Logistic Regression, Decision Trees, Random Forests, AdaBoost, SVMs
- Unsupervised: Clustering (KMeans, DBSCAN), Gaussian Mixture Models, and Decomposition (PCA, t-SNE)
- Model Selection: KFold, ShuffleSplit, and Grid Search for hyperparameter tuning.
Search & Pathfinding
- Uninformed: BFS, DFS, Iterative Deepening, and Dijkstra's
- Informed: A* and Greedy Best-First Search
- Adversarial: Minimax, Negamax, Expectiminimax, and Monte Carlo Tree Search (MCTS)
- Local Search: Hill Climbing, Simulated Annealing, Genetic Algorithms, and Particle Swarm Optimisation (PSO)
- Constraint Satisfaction: Backtracking and DLX (Dancing Links)
Reinforcement Learning
- Tabular Methods: Q-Learning and SARSA implementations for discrete state spaces
- Deep RL: Integration with the
nnmodule for Deep Q-Networks (DQN) and policy gradient methods - Environment API: A standardised interface for creating native environments, plus a compatibility wrapper for Gymnasium environments
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for numpy-ai-kit 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| numpy_ai_kit-0.1.4.tar.gz | 45.3 kB | Without provenance | Details for numpy_ai_kit-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| numpy_ai_kit-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for numpy_ai_kit-0.1.4-py3-none-any.whl |
Total release size: 115.1 kB
Release files / numpy_ai_kit-0.1.4.tar.gz
| Download URL | numpy_ai_kit-0.1.4.tar.gz |
|---|---|
| Size | 45.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0fbc242bff3236ed99b11a698742afa67b1576279185ac86a72e3634eb78f5b
|
|
BLAKE2b-256 checksum How to use checksums |
5f9120dc038159c73d001232365bf84c083c9b5de90b622819df6468dea628b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Nobara Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / numpy_ai_kit-0.1.4-py3-none-any.whl
| Download URL | numpy_ai_kit-0.1.4-py3-none-any.whl |
|---|---|
| Size | 69.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30611f3470674c9584c65b82dd139856b34a0b4e20bb63a3e0f6dc31a93e53e8
|
|
BLAKE2b-256 checksum How to use checksums |
22c894ca8d73c852edc313797dfc31ab8573688e8beccadbe238ae07a410cb39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Nobara Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for numpy-ai-kit 0.1.4
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.