Skip to content

About

Foundational machine learning algorithms implemented from scratch to understand optimization, loss functions, and model behavior.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Machine Learning From Scratch

This project implements core Machine Learning algorithms from scratch using only Python and NumPy. No high-level ML libraries (scikit-learn, TensorFlow, PyTorch) are used.

Implemented Model

Linear Regression

  • Hypothesis: ŷ = wx + b
  • Loss function: Mean Squared Error (MSE)
  • Optimization: Gradient Descent

Key Concepts Covered

  • Error minimization
  • Gradient descent mechanics
  • Effect of learning rate
  • Numerical instability and divergence
  • Visualization of loss convergence

Experiments Performed

  • Learning rate too high → divergence and NaN loss
  • Learning rate too low → slow convergence
  • Proper learning rate → smooth exponential decay
  • Noisy data → approximation instead of perfect fit

Why This Project

The goal of this project is conceptual clarity, not performance. Each component is implemented step-by-step to understand how and why machine learning models learn.

Tools Used

  • Python 3
  • NumPy
  • Matplotlib

Author

Akhil

About

Foundational machine learning algorithms implemented from scratch to understand optimization, loss functions, and model behavior.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages