Skip to content

sharmas1ddharth/LinearRegression_algorithm_from_scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LinearRegression_algorithm_from _scratch

Overview

In the code I'm using a small dataset of student test scores and the amount of hours they studied. So, the linear regression shows some relationship and I created this to understand how it works.

Python Packages Used

  • numpy

Usage

run python main.py to see the results

starting gradient descent at b = 0, m = 0, error = 5565.107834483211
After 1000 iterations b = 0.08893651993741346, m = 1.4777440851894448, error = 112.61481011613473

About

I created a linear regression algorithm using gradient descent from scratch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages