README.md
Ever wish you had an inefficient but somewhat legible collection of machine learning algorithms implemented exclusively in NumPy? No?
To use this code as a starting point for ML prototyping / experimentation, just clone the repository, create a new virtualenv, and start hacking:
$ git clone https://github.com/ddbourgin/numpy-ml.git
$ cd numpy-ml && virtualenv npml && source npml/bin/activate
$ pip3 install -r requirements-dev.txt
If you don't plan to modify the source, you can also install numpy-ml as a
Python package: pip3 install -u numpy_ml.
The reinforcement learning agents train on environments defined in the OpenAI
gym. To install these alongside numpy-ml, you
can use pip3 install -u 'numpy_ml[rl]'.
For more details on the available models, see the project documentation.
Gaussian mixture model
Hidden Markov model
Latent Dirichlet allocation (topic model)
Neural networks
col2im (MATLAB port)im2col (MATLAB port)conv1Dconv2Ddeconv2DminibatchTree-based models
Linear models
n-Gram sequence models
Multi-armed bandit models
Reinforcement learning models
Nonparameteric models
Matrix factorization
Preprocessing
Utilities
Am I missing your favorite model? Is there something that could be cleaner / less confusing? Did I mess something up? Submit a PR! The only requirement is that your models are written with just the Python standard library and NumPy. The SciPy library is also permitted under special circumstances ;)
See full contributing guidelines here.