Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

MLAlgorithms

> 编程语言
Open source

Minimal and clean examples of machine learning algorithms implementations

11.1K stars0 likes2 views
WebsiteGitHub

About

Minimal and clean examples of machine learning algorithms implementations

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

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

How to run examples without installation

bash
        cd MLAlgorithms
        python -m examples.linear_models

How to run examples within Docker

bash
        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.

Issues· 10 open

View all issuesOpen on GitHub
  • #91

    Typo in filename

    Updated Oct 22, 2024
  • #89

    Project dependencies may have API risk issues

    Updated Mar 12, 2023
  • #34

    I would like to implement GANs

    Updated Mar 6, 2023
  • #86

    do you have examples for Factorization machines

    Updated Nov 2, 2021
  • #33

    may you share example for MLAlgorithms/mla/fm.py

    Updated Nov 1, 2021
  • #85

    Decision Tree Algorithm

    Updated Aug 18, 2021
  • #25

    ImportError : No module name mla

    Updated Nov 17, 2019
  • #39

    PCA: the calculation of proportion of vairance

    Updated Oct 9, 2018
  • #12

    Implement Gradient

    Updated Dec 27, 2017
  • #14

    Import by filename not supported

    Updated Nov 24, 2016

> Tags

Pythondeep-learningmachine-learningmachine-learning-algorithmsneural-networks

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言