πΌ Salary Prediction Using Linear Regression
An interactive Machine Learning web application that predicts salary (in thousands) based on skill level using an explainable Linear Regression model.
Designed as a lightweight end-to-end ML project demonstrating model training, evaluation, visualization, and deployment using Streamlit and Hugging Face Spaces.
π Live Demo
π https://huggingface.co/spaces/Siddhartha001/Salary_Prediction_Using_Linear_Regression
π§ Project Overview
This project showcases a simple yet interpretable regression workflow:
Synthetic dataset for controlled experimentation
Linear Regression for salary prediction
Interactive user input using Streamlit
Real-time inference and visualization
Model performance metrics (MSE, RΒ²)
The goal is to demonstrate core regression concepts, clean UI design, and reproducible ML deployment.
π Tech Stack
Python
Streamlit
NumPy
Scikit-learn
Matplotlib
β¨ Features
Interactive skill-level slider
Real-time salary prediction
Regression visualization with fitted line
Model evaluation metrics:
Mean Squared Error (MSE)
RΒ² Score
Clean and explainable ML pipeline
π Project Structure Salary_Prediction_Using_Linear_Regression/ βββ src/ β βββ streamlit_app.py # Main Streamlit application βββ requirements.txt # Python dependencies βββ README.md # Project documentation
βοΈ How It Works
Synthetic skill vs salary data is generated
Linear Regression model is trained
User selects skill level through UI
Model predicts salary instantly
Visualization displays regression behavior
π Deployment
Built using Streamlit
Hosted on Hugging Face Spaces
Automatic rebuild on commit
π¨βπ» Author
K. Siddhartha Python Developer | AI / NLP Developer
π GitHub: https://github.com/k-siddhartha-ai
π€ Hugging Face: https://huggingface.co/Siddhartha001
β Notes
This project is intended for educational demonstration of regression modeling and explainable ML concepts. The dataset is synthetic and used for visualization purposes.