mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 22:11:10 +00:00
Merge pull request #310 from NebulaAnish/master
Added Linear Regression file to find linear relation between two rela…
This commit is contained in:
commit
28e4fcdb98
284
scripts/Linear Regression/Linear Regression.ipynb
Normal file
284
scripts/Linear Regression/Linear Regression.ipynb
Normal file
File diff suppressed because one or more lines are too long
24
scripts/Linear Regression/README.md
Normal file
24
scripts/Linear Regression/README.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# Linear Regression Model
|
||||||
|
|
||||||
|
A linear regression model used written in python language in Jupyter Notebook to help find linear relation between two variables.
|
||||||
|
|
||||||
|
## Tech Stack 🛠
|
||||||
|
|
||||||
|
- Python
|
||||||
|
- Pandas
|
||||||
|
- Matplotlib
|
||||||
|
- sklearn
|
||||||
|
|
||||||
|
## Features ⚡
|
||||||
|
|
||||||
|
- Find a line that optimally describes the relation between the given data
|
||||||
|
- Find slope and intercept of the line to re-plot it anywhere
|
||||||
|
|
||||||
|
## Steps to use 👀
|
||||||
|
|
||||||
|
- Save a data.csv file in the same folder as the project and name it "data.csv" [lowercase]
|
||||||
|
- csv file must have only two columns with names col_1 and col_2 where col_1 is feature and col_2 is the target variable.
|
||||||
|
|
||||||
|
PS: Have a look at the example code in the folder which is used to find relation between budget and revenue of the movie
|
||||||
|
|
||||||
|
<hr>
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
4
scripts/Linear Regression/requirements.txt
Normal file
4
scripts/Linear Regression/requirements.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- Python 3.6 or higher
|
||||||
|
- Anaconda Installation
|
||||||
|
|
||||||
|
or can be used by uploading it to the online jupyter notebook version
|
Loading…
Reference in New Issue
Block a user