# ML-From-Scratch

> Machine Learning From Scratch. Bare bones NumPy implementations of machine learning models and algorithms with a focus on accessibility. Aims to cover everything…

- Type: agent or tool
- Field: ML & AI
- Repository: https://github.com/eriklindernoren/ML-From-Scratch
- GitHub stars: 33427
- Licence: MIT
- Language: Python
- Last push: 2023-10-15
- Page: https://imutechz.in/agents/ml-from-scratch

## What it is
ML-From-Scratch provides bare-bones NumPy implementations of fundamental machine learning models and algorithms. It prioritizes transparency and accessibility over computational efficiency, covering supervised, unsupervised, reinforcement, and deep learning categories. The project includes runnable examples for each algorithm type.

## Features
- NumPy-only implementations of ML algorithms
- Covers supervised, unsupervised, reinforcement, and deep learning
- Includes CNN, GAN, RBM, DBSCAN, and genetic algorithms
- Runnable example scripts for each model
- Educational focus with transparent inner workings
- No external ML framework dependencies

## Best for
- Learning ML algorithm internals
- Educational courses and self-study
- Prototyping understanding before using frameworks
- Researching algorithm behavior from scratch

## Pros
- Transparent, accessible code for learning
- Wide coverage of algorithm categories
- Includes working examples with visualizations
- Pure NumPy with minimal dependencies

## Cons
- Not optimized for production performance
- Installation uses legacy setup.py method
- Requires solid Python and NumPy knowledge

## Usage
```
python mlfromscratch/examples/polynomial_regression.py
```

Tags: machine-learning, numpy, from-scratch, educational, algorithms, deep-learning, reinforcement-learning, unsupervised-learning
