Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Scientist Salary Prediction #831

Merged
merged 2 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions Prediction Models/Data_science_salary_prediction/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Data Scientist Salary Prediction

This project predicts annual salaries for data scientists based on attributes like experience level, employment type, job title, remote work ratio, and company size. The goal is to develop an accurate regression model to help data professionals and companies understand compensation trends and make informed salary-related decisions.

## Project Structure

- `data`: Contains the dataset for data scientist salary prediction.
- `notebooks`: Jupyter notebooks with exploratory data analysis (EDA), feature engineering, and model training.
- `models`: Saved models for prediction.
- `README.md`: Project overview and instructions.

## Installation

1. Clone the repository:
```bash
git clone https://github.com/yourusername/ds-salary-prediction.git
cd ds-salary-prediction
```

2. Install the required packages:
```bash
pip install -r requirements.txt
```

## Dataset

The dataset consists of features including:
- `work_year`: Year of employment
- `experience_level`: Level of experience (e.g., Junior, Senior)
- `employment_type`: Type of employment (e.g., Full-time, Part-time)
- `job_title`: Position held by the employee
- `remote_ratio`: Percentage of work done remotely
- `company_size`: Size of the company
- `salary_in_usd`: Annual salary in USD

## Methodology

1. **Data Cleaning**: Handle missing values and encode categorical variables.
2. **Exploratory Data Analysis (EDA)**: Visualize salary distribution and analyze relationships with other features.
3. **Feature Engineering**: Transform and select features that have significant correlations with salary.
4. **Model Training**: Train regression models such as Linear Regression, Random Forest, and XGBoost to predict salary.
5. **Model Evaluation**: Evaluate models using metrics like R² and RMSE, and select the best-performing model.



## Results

The best model achieves an R² score of approximately 0.73 on the test set, indicating a strong predictive performance for salary based on the given features.
Loading
Loading