How to use from the
Use from the
Scikit-learn library
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

πŸ’Έ 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.

             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

pip install numpy pandas scikit-learn joblib huggingface_hub

2. Download the Model

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

Student.Placement.Model/
β”‚
β”œβ”€β”€ .gitattributes
β”œβ”€β”€ PayPredictor.pkl
└── README.md

πŸ‘¨β€πŸ’» Author

Yash-Codezz

⭐ If you find this project interesting, consider giving the repository a star!

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support