This project implements a Linear Regression algorithm from scratch using Python, without relying on any machine learning libraries like Scikit-Learn or TensorFlow.
Dataset: Kaggle
- Implements Ordinary Least Squares (OLS) regression
- Supports Gradient Descent optimization
- Uses Manually Computed RΒ² Score for model evaluation
- Handles only one feature (Univariate Regression)
- Built using only NumPy for matrix operations
π linear_regression_scratch
βββ linear_regression.ipynb # Implementation Code of Linear Regression
βββ Salary_Data.csv # Dataset
βββ README.md # Project documentation
- Understanding the math behind Linear Regression
- Implementing Gradient Descent Optimization
- Working with NumPy for vectorized operations
- Training a regression model without ML libraries