An open API service indexing awesome lists of open source software.

https://github.com/aryehky/ml-theory-to-implementation

๐Ÿ“š๐Ÿง  Explores core machine learning concepts through interactive, hands-on Jupyter notebooks. From building a neural network from scratch to applying dimensionality reduction and classification with real-world libraries, this project bridges the gap between theory and practical application.
https://github.com/aryehky/ml-theory-to-implementation

4d-database jupyter-notebook machine-learning matploblib numpy pca-analysis

Last synced: 11 months ago
JSON representation

๐Ÿ“š๐Ÿง  Explores core machine learning concepts through interactive, hands-on Jupyter notebooks. From building a neural network from scratch to applying dimensionality reduction and classification with real-world libraries, this project bridges the gap between theory and practical application.

Awesome Lists containing this project

README

          

# ๐Ÿง  ML Foundations: Theory to Practice

This repository explores core machine learning concepts through interactive, hands-on Jupyter notebooks. From building a neural network from scratch to applying dimensionality reduction and classification with real-world libraries, this project bridges the gap between theory and practical application.

---

## ๐Ÿ“š Notebooks Overview

| Notebook | Focus | Description |
| -------------------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `01_pca_dimensionality.ipynb` | ๐Ÿ“‰ Dimensionality Reduction | Uses Principal Component Analysis (PCA) to reduce high-dimensional data while preserving variance. Ideal for feature compression and visualization. |
| `02_neural_net_numpy.ipynb` | ๐Ÿค– Neural Network from Scratch | Implements a simple feedforward neural network using only NumPy. Covers forward propagation, backpropagation, and a training loop. |
| `03_classification_models.ipynb` | ๐Ÿงช ML Classification | Applies supervised learning techniques using scikit-learn. Includes data preprocessing, model training, evaluation, and comparison. |

---

## ๐Ÿ” Key Takeaways

### ๐ŸŽฏ PCA

* Reduced a 4D dataset to 2D while retaining \~95% of variance.
* Visualized separability of classes in reduced space.

### ๐Ÿ› ๏ธ Custom Neural Network

* Built from scratch using NumPy (no ML frameworks).
* Trained a neural net using manual backpropagation and gradient descent.
* Demonstrated convergence on a synthetic dataset.

### ๐Ÿ“ˆ Classification Pipeline

* Achieved \~97% accuracy using logistic regression.
* Visualized results via a confusion matrix.
* Compared multiple models including SVM and Decision Trees.

---

## ๐Ÿงฐ Tech Stack

* **Python** โ€“ Core scripting language
* **NumPy** โ€“ Neural network implementation
* **Scikit-learn** โ€“ PCA, classification, evaluation tools
* **Matplotlib & Seaborn** โ€“ Visualization
* **Jupyter Notebooks** โ€“ Interactive development

---

## ๐Ÿ“ Directory Structure

```
ml-theory-to-practice/
โ”œโ”€โ”€ 01_pca_dimensionality.ipynb # Dimensionality Reduction with PCA
โ”œโ”€โ”€ 02_neural_net_numpy.ipynb # Neural Network built from scratch
โ”œโ”€โ”€ 03_classification_models.ipynb # Supervised ML classification models
โ””โ”€โ”€ README.md
```

---

## ๐Ÿš€ Project Goals

* Solidify foundational machine learning theory through hands-on implementation
* Develop intuition for model behavior, training dynamics, and evaluation
* Showcase practical skills for portfolio use or collaborative work