https://github.com/sharmas1ddharth/linearregression_algorithm_from_scratch
I created a linear regression algorithm using gradient descent from scratch
https://github.com/sharmas1ddharth/linearregression_algorithm_from_scratch
gradient-descent linear-regression machine-learning-algorithms python
Last synced: about 2 months ago
JSON representation
I created a linear regression algorithm using gradient descent from scratch
- Host: GitHub
- URL: https://github.com/sharmas1ddharth/linearregression_algorithm_from_scratch
- Owner: sharmas1ddharth
- License: mit
- Created: 2021-05-20T13:20:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-05T11:47:34.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T23:05:22.516Z (7 months ago)
- Topics: gradient-descent, linear-regression, machine-learning-algorithms, python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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
````