Need help with MLAlgorithms?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

8.6K Stars 1.5K Forks MIT License 144 Commits 7 Opened issues


Minimal and clean examples of machine learning algorithms implementations

Services available


Need anything else?

Contributors list

Machine learning algorithms

A collection of minimal and clean implementations of machine learning algorithms.


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.



        git clone
        cd MLAlgorithms
        pip install scipy numpy
        python 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


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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.