rushter/MLAlgorithms

Minimal and clean examples of machine learning algorithms implementations

Python

11,180

153 commits

updated Sep 29, 2026

See the code

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:

Installation

        git clone https://github.com/rushter/MLAlgorithms
        cd MLAlgorithms
        pip install scipy numpy
        python setup.py develop

How to run examples without installation

        cd MLAlgorithms
        python -m examples.linear_models

How to run examples within Docker

        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.

deep-learning
machine-learning
machine-learning-algorithms
neural-networks
python

rushter/MLAlgorithms

Minimal and clean examples of machine learning algorithms implementations

Python

11,180

153 commits

updated Sep 29, 2026

See the code

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:

Installation

        git clone https://github.com/rushter/MLAlgorithms
        cd MLAlgorithms
        pip install scipy numpy
        python setup.py develop

How to run examples without installation

        cd MLAlgorithms
        python -m examples.linear_models

How to run examples within Docker

        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.

deep-learning
machine-learning
machine-learning-algorithms
neural-networks
python

Significant stargazers

(top 24 of 54)

Kurt Valcorza

16 followers · starred Jul 2026

Shelley Vohr

3,968 followers · starred Nov 2016

Vincent Hanquez

336 followers · starred Nov 2016

Smitty

97 followers · starred Nov 2016