mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-30 15:31:10 +00:00
739 B
739 B
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