Skip to content

A machine learning project building a Linear Regression model from scratch using python without help from ML libraries.

Notifications You must be signed in to change notification settings

FrienDotJava/linear-regression-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Linear Regression from Scratch in Python

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

πŸš€ Features

  • 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

πŸ“‚ Project Structure

πŸ“ linear_regression_scratch
│── linear_regression.ipynb     # Implementation Code of Linear Regression
│── Salary_Data.csv             # Dataset
│── README.md                   # Project documentation

πŸ“– Learning Outcomes

  • Understanding the math behind Linear Regression
  • Implementing Gradient Descent Optimization
  • Working with NumPy for vectorized operations
  • Training a regression model without ML libraries

About

A machine learning project building a Linear Regression model from scratch using python without help from ML libraries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •