numpy-ml is a collection of machine learning algorithms implemented exclusively in NumPy, intended as a legible reference and starting point for experimentation rather than a production library. It covers models across supervised, unsupervised, and reinforcement learning, along with neural network layers, optimizers, and preprocessing utilities. Users can clone the repository to modify the source or install it as a Python package.
Install & use
Install
pip3 install -u numpy_ml
Usage
# open ddbourgin/numpy-ml and follow its README
ddbourgin/numpy-ml is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.
Features
Classical models including Gaussian mixture models, hidden Markov models, and latent Dirichlet allocation
Neural network layers, modules, optimizers, losses, and activations
Tree-based, linear, and nonparametric models such as random forests and Gaussian processes
Reinforcement learning agents including Q-learning, SARSA, and Monte Carlo methods
Preprocessing utilities such as tokenization, TF-IDF, and byte pair encoding
Best for
Learning how ML algorithms work by reading NumPy implementations
Prototyping and experimenting with model code
Teaching or studying algorithm internals
Building small projects that only need NumPy
Pros
Algorithms are implemented with only the Python standard library and NumPy
Source can be cloned and modified for experimentation
Wide range of models across many ML subfields
Cons
The README describes the collection as inefficient
Reinforcement learning agents require OpenAI gym environments, installed via the rl extra
Contributions must use only the Python standard library and NumPy
Machine Learning From Scratch. Bare bones NumPy implementations of machine learning models and algorithms with a focus on accessibility. Aims to cover everything…
The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent…