This project demonstrates a simple Linear Regression model built with scikit-learn to predict a person's salary based on their years of experience. The model is deployed using Streamlit for a clean and interactive web interface.
- Source: Salary Dataset
- Contains:
Experience YearsSalary
- Python
- Pandas & Matplotlib
- Scikit-learn
- Streamlit
- Pickle (for model serialization)
- Load Dataset (online & offline options)
- Visualize the relationship using a scatter plot
- Split data into training and testing sets
- Train a Linear Regression model
- Evaluate model with R² Score and MSE
- Serialize the trained model using
pickle - Deploy using
Streamlit
Thanks to everyone who’s contributed!
- Mubeen Channa (@Mubeen-Channa) – Project Maintainer
- Irfan Narejo (@meet-irfan) – Boosted accuracy to 90% (+4%) and reduced MSE from 48 to 31
- Muhammad Younis (@YounisJ) – Updated salary dataset with new experience and compensation entries
Feel free to add yourself here if you make a contribution!
![]() Mubeen Channa Project Lead & Maintainer — Designed, built, and deployed the model |
![]() Irfan Narejo Boosted accuracy to 90% (+4%) and reduced MSE from 48 to 31 |
![]() Muhammad Younis Updated salary dataset with new experience and compensation entries |
- Clone the repository
- Install required packages:
1. pip install pandas matplotlib scikit-learn streamlit 2. python -m streamlit run app.py / streamlit run app.py



