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) – Boot accuracy to 90% (+4%), cut MSE to 31 (from 48)
Feel free to add yourself here if you make a contribution!
Thanks to everyone who’s contributed!
![]() Mubeen Channa Project maintainer |
![]() Irfan Narejo Boot accuracy to 90% (+4%), cut MSE to 31 (from 48) |
- 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


