Skip to content

kunjanshah0811/Linear_Regression_Salary_Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Salary Prediction Using Linear Regression

This repository contains code for predicting salaries based on years of experience using simple linear regression.

Overview

The code provided in this repository demonstrates how to train a simple linear regression model to predict salaries based on the number of years of experience. It includes:

  • Loading a dataset of salaries and years of experience.
  • Splitting the dataset into training and testing sets.
  • Training a linear regression model on the training data.
  • Evaluating the model's performance on the testing data.
  • Visualizing the results using matplotlib.

Getting Started

Prerequisites

To run the code, you need to have Python installed on your system along with the following libraries:

  • NumPy
  • pandas
  • matplotlib
  • scikit-learn

You can install these dependencies using pip:

pip install numpy pandas matplotlib scikit-learn

### Usage
Clone the repository:

git clone https://github.com/your-username/Linear_Regression_Salary_Prediction.git

Navigate to the project directory:

cd Linear_Regression_Salary_Prediction




About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published