--- license: mit language: pyt pipeline_tag: tabular-regression tags: - machine-learning - stacking-regression library_name: sklearn --- # 💸 PayPredictor: ### Student Placement Salary Prediction using Stacking Regression - **PayPredictor** is a Machine Learning regression project developed to predict student salary packages (LPA) using academic and placement-related features. - The model follows a **Stacking Regression Architecture**, combining three different base estimators with a Linear Regression meta-model. - The complete preprocessing and modeling pipeline is serialized using Joblib, making it ready for integration into other Python applications. --- ## 📊 Model Performance Evaluated using an 80/20 train-test split and 10-fold cross-validation. | Evaluation Metric | Score | |:---|---:| | R² Score | **78.23%** | | MAPE | **5.75%** | --- ## 🏗️ Model Architecture PayPredictor uses a Stacking Regressor consisting of three base models and one meta-model. ```text Input Features | ▼ Preprocessing (Ordinal + One-Hot Encoding) | ▼ StandardScaler | ▼ ┌──────────────────┐ │ Base Models │ └──────────────────┘ / | \ / | \ ▼ ▼ ▼ Ridge KNN Random Forest \ | / \ | / ▼ Linear Regression (Meta Model) | ▼ Predicted Salary (LPA) ``` --- ## 🛠️ Tech Stack - Python - Pandas - NumPy - Scikit-Learn - Joblib - Hugging Face Hub ## 📥 Download & Usage ### 1. Install Dependencies ```bash pip install numpy pandas scikit-learn joblib huggingface_hub ``` ### 2. Download the Model ```python from huggingface_hub import hf_hub_download import joblib model_path = hf_hub_download( repo_id="Yash-Codezz/Student.Placement.Model", filename="PayPredictor.pkl" ) model = joblib.load(model_path) ``` --- ## 📁 Repository Structure ```text Student.Placement.Model/ │ ├── .gitattributes ├── PayPredictor.pkl └── README.md ``` --- ## 👨‍💻 Author **Yash-Codezz** ⭐ If you find this project interesting, consider giving the repository a star!