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
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language: pyt
|
| 4 |
+
pipeline_tag: tabular-regression
|
| 5 |
+
tags:
|
| 6 |
+
- machine-learning
|
| 7 |
+
- stacking-regression
|
| 8 |
+
library_name: sklearn
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# πΈ PayPredictor:
|
| 12 |
+
### Student Placement Salary Prediction using Stacking Regression
|
| 13 |
+
|
| 14 |
+
- **PayPredictor** is a Machine Learning regression project developed to predict student salary packages (LPA) using academic and placement-related features.
|
| 15 |
+
|
| 16 |
+
- The model follows a **Stacking Regression Architecture**, combining three different base estimators with a Linear Regression meta-model.
|
| 17 |
+
|
| 18 |
+
- The complete preprocessing and modeling pipeline is serialized using Joblib, making it ready for integration into other Python applications.
|
| 19 |
+
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
## π Model Performance
|
| 23 |
+
|
| 24 |
+
Evaluated using an 80/20 train-test split and 10-fold cross-validation.
|
| 25 |
+
|
| 26 |
+
| Evaluation Metric | Score |
|
| 27 |
+
|:---|---:|
|
| 28 |
+
| RΒ² Score | **78.23%** |
|
| 29 |
+
| MAPE | **5.75%** |
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## ποΈ Model Architecture
|
| 34 |
+
|
| 35 |
+
PayPredictor uses a Stacking Regressor consisting of three base models and one meta-model.
|
| 36 |
+
|
| 37 |
+
```text
|
| 38 |
+
Input Features
|
| 39 |
+
|
|
| 40 |
+
βΌ
|
| 41 |
+
Preprocessing
|
| 42 |
+
(Ordinal + One-Hot Encoding)
|
| 43 |
+
|
|
| 44 |
+
βΌ
|
| 45 |
+
StandardScaler
|
| 46 |
+
|
|
| 47 |
+
βΌ
|
| 48 |
+
ββββββββββββββββββββ
|
| 49 |
+
β Base Models β
|
| 50 |
+
ββββββββββββββββββββ
|
| 51 |
+
/ | \
|
| 52 |
+
/ | \
|
| 53 |
+
βΌ βΌ βΌ
|
| 54 |
+
Ridge KNN Random Forest
|
| 55 |
+
\ | /
|
| 56 |
+
\ | /
|
| 57 |
+
βΌ
|
| 58 |
+
Linear Regression
|
| 59 |
+
(Meta Model)
|
| 60 |
+
|
|
| 61 |
+
βΌ
|
| 62 |
+
Predicted Salary
|
| 63 |
+
(LPA)
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
## π οΈ Tech Stack
|
| 69 |
+
|
| 70 |
+
- Python
|
| 71 |
+
- Pandas
|
| 72 |
+
- NumPy
|
| 73 |
+
- Scikit-Learn
|
| 74 |
+
- Joblib
|
| 75 |
+
- Hugging Face Hub
|
| 76 |
+
|
| 77 |
+
## π₯ Download & Usage
|
| 78 |
+
|
| 79 |
+
### 1. Install Dependencies
|
| 80 |
+
|
| 81 |
+
```bash
|
| 82 |
+
pip install numpy pandas scikit-learn joblib huggingface_hub
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
### 2. Download the Model
|
| 86 |
+
|
| 87 |
+
```python
|
| 88 |
+
from huggingface_hub import hf_hub_download
|
| 89 |
+
import joblib
|
| 90 |
+
|
| 91 |
+
model_path = hf_hub_download(
|
| 92 |
+
repo_id="Yash-Codezz/Student.Placement.Model",
|
| 93 |
+
filename="PayPredictor.pkl"
|
| 94 |
+
)
|
| 95 |
+
|
| 96 |
+
model = joblib.load(model_path)
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
---
|
| 100 |
+
|
| 101 |
+
## π Repository Structure
|
| 102 |
+
|
| 103 |
+
```text
|
| 104 |
+
Student.Placement.Model/
|
| 105 |
+
β
|
| 106 |
+
βββ .gitattributes
|
| 107 |
+
βββ PayPredictor.pkl
|
| 108 |
+
βββ README.md
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
---
|
| 112 |
+
|
| 113 |
+
## π¨βπ» Author
|
| 114 |
+
|
| 115 |
+
**Yash-Codezz**
|
| 116 |
+
|
| 117 |
+
β If you find this project interesting, consider giving the repository a star!
|