mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-24 04:21:12 +00:00
.. | ||
example implementation | ||
Linear Regression.ipynb | ||
README.md | ||
requirements.txt |
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