Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.02 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.02 KB

Univariate Linear Regression

In this project, we create a simple linear regression model that predicts the salary from a person's experience (measured in years), using the gradiant descent algorithm. The data that we work with is taken from Kaggle (https://www.kaggle.com/datasets/krishnaraj30/salary-prediction-data-simple-linear-regression).

Installation

  • Python

Install Python 3.9 or higher. Create a virtual environment with:

python3 -m venv <virtual-environment-name>

Example: To create a virtual environment called linear-regression, use

python3 -m venv linear-regression

Activate the virtual environment with:

source <path-to-virtual-environment>/bin/activate

The virtual environment can be deactivated with:

deactivate
  • Jupyter Notebook

Install Jupyter Notebook with:

pip install notebook

To run the notebook:

jupyter notebook
  • Additional Requirements

Install the necessary packages listed in requirements.txt via:

pip install -r requirements.txt