Instructions to use pavithraams/student-pass-fail-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use pavithraams/student-pass-fail-model with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("pavithraams/student-pass-fail-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
Student Pass/Fail Prediction (Open Elective Project)
Decision Tree trained on our own student dataset (1000 rows), then fine-tuned with GridSearchCV.
| Model | Test Accuracy |
|---|---|
| Base Decision Tree | 74.50% |
| Fine-tuned Decision Tree | 78.00% |
Best parameters: {'criterion': 'entropy', 'max_depth': 8, 'min_samples_leaf': 10, 'min_samples_split': 2}
Features: study_hours, attendance, sleep_hours, previous_marks, assignments_done
Usage
import joblib, pandas as pd
from huggingface_hub import hf_hub_download
model = joblib.load(hf_hub_download("pavithraams/student-pass-fail-model", "model.joblib"))
x = pd.DataFrame([{"study_hours": 7, "attendance": 85, "sleep_hours": 7.5, "previous_marks": 75, "assignments_done": 8}])
print("Pass" if model.predict(x)[0] == 1 else "Fail")
- Downloads last month
- -