This is a simple and interactive Machine Learning web app that predicts whether a person earns more than βΉ50K/year based on their profile. The app is built using Python, Streamlit, and Scikit-learn.
- β
Predicts salary category (
>50Kor<=50K) - β Built with Streamlit for easy web UI
- β Logistic Regression ML model
- β Data visualizations using Seaborn & Matplotlib
- β Takes real-time user input
- Python
- Pandas, NumPy
- Scikit-learn (Machine Learning)
- Streamlit (Web Interface)
- Matplotlib, Seaborn (Charts)
- Plotly
- Joblib (Model saving)
git clone https://github.com/your-username/employee-salary-prediction.git cd employee-salary-prediction 2. Install Requirements bash Copy Edit pip install -r requirements.txt 3. Launch the App If using the notebook:
bash
Copy
Edit
streamlit run "employee salary prediction svk.ipynb"
bash Copy Edit streamlit run app.py π§ͺ How It Works User provides input like age, education, occupation, hours/week, etc.
The ML model makes a prediction on salary level.
Output is shown instantly on the web app.
π Dataset File: adult 3.csv
Based on UCI Adult Income dataset
Used for training and testing the model
πΈ UI Preview (Optional) Add a screenshot of the Streamlit app here if you like.
π Contribution Feel free to fork this repo and submit a pull request. Suggestions are always welcome!
π License This project is for educational use and is open source.
python Copy Edit
Let me know if you'd like help with:
- Pushing it to GitHub step-by-step
- Converting the
.ipynbintoapp.py - Adding images or a demo GIF
I'm here to help you make it perfect! π