Instructions to use Yash-Codezz/Student.Placement.Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use Yash-Codezz/Student.Placement.Model with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("Yash-Codezz/Student.Placement.Model", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
File size: 2,552 Bytes
103df32 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | ---
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! |