rushter /MLAlgorithms
Minimal and clean examples of machine learning algorithms implementations
★ 11,183⑂ 1,765👁 418⑃ 67● 28▤ 0
+1
Daily
+2
Weekly
+5
Monthly
11,183
stars
1,765
forks
418
watchers
67
prs
28
issues
0
releases
README
Machine learning algorithms
A collection of minimal and clean implementations of machine learning algorithms.
Why?
This project is targeting people who want to learn internals of ml algorithms or implement them from scratch.
The code is much easier to follow than the optimized libraries and easier to play with.
All algorithms are implemented in Python, using numpy, scipy and autograd.
Implemented:
Deep learning (MLP, CNN, RNN, LSTM)
Linear regression, logistic regression
Random Forests
Support vector machine (SVM) with kernels (Linear, Poly, RBF)
K-Means
Gaussian Mixture Model
K-nearest neighbors
Naive bayes
Principal component analysis (PCA)
Factorization machines
Restricted Boltzmann machine (RBM)
t-Distributed Stochastic Neighbor Embedding (t-SNE)
Gradient Boosting trees (also known as GBDT, GBRT, GBM, XGBoost)
Reinforcement learning (Deep Q learning)
Installation
sh
git clone https://github.com/rushter/MLAlgorithms
cd MLAlgorithms
pip install scipy numpy
python setup.py develop
How to run examples without installation
sh
cd MLAlgorithms
python -m examples.linear_models
How to run examples within Docker
sh
cd MLAlgorithms
docker build -t mlalgorithms .
docker run --rm -it mlalgorithms bash
python -m examples.linear_models
Contributing
Your contributions are always welcome!
Feel free to improve existing code, documentation or implement new algorithm.
Please open an issue to propose your changes if they are big enough.Top issues
#25ImportError : No module name mla5 comments · 2016-12-20#12Implement Gradient2 comments · 2016-11-20#86do you have examples for Factorization machines1 comments · 2021-11-01#85Decision Tree Algorithm1 comments · 2021-08-18#34I would like to implement GANs1 comments · 2018-02-22#33may you share example for MLAlgorithms/mla/fm.py1 comments · 2018-01-03#14Import by filename not supported1 comments · 2016-11-23#89Project dependencies may have API risk issues0 comments · 2022-10-26