Instructions to use jskswamy/predictive-maintenance-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use jskswamy/predictive-maintenance-model with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("jskswamy/predictive-maintenance-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
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ tags:
|
|
| 4 |
- sklearn
|
| 5 |
- predictive-maintenance
|
| 6 |
- classification
|
| 7 |
-
-
|
| 8 |
datasets:
|
| 9 |
- jskswamy/predictive-maintenance-data
|
| 10 |
metrics:
|
|
@@ -17,25 +17,26 @@ metrics:
|
|
| 17 |
|
| 18 |
## Model Description
|
| 19 |
|
| 20 |
-
This
|
| 21 |
The model was trained for **commercial fleet predictive maintenance** applications.
|
| 22 |
|
| 23 |
-
##
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
| 29 |
|
| 30 |
## Performance Metrics (Held-Out Test Set)
|
| 31 |
|
| 32 |
| Metric | Value |
|
| 33 |
|--------|-------|
|
| 34 |
-
| **
|
| 35 |
-
|
|
| 36 |
-
|
|
| 37 |
-
|
|
| 38 |
-
| Precision | 0.
|
| 39 |
|
| 40 |
## Features
|
| 41 |
|
|
@@ -81,7 +82,7 @@ print(f"Maintenance Probability: {probability[0]:.2%}")
|
|
| 81 |
|
| 82 |
## Training Details
|
| 83 |
|
| 84 |
-
- **Algorithm:**
|
| 85 |
- **Hyperparameter Tuning:** Optuna with 3-fold stratified CV
|
| 86 |
- **Scoring:** Balanced Accuracy
|
| 87 |
- **Split:** 75/10/15 (Train/Validation/Test)
|
|
|
|
| 4 |
- sklearn
|
| 5 |
- predictive-maintenance
|
| 6 |
- classification
|
| 7 |
+
- adaboost
|
| 8 |
datasets:
|
| 9 |
- jskswamy/predictive-maintenance-data
|
| 10 |
metrics:
|
|
|
|
| 17 |
|
| 18 |
## Model Description
|
| 19 |
|
| 20 |
+
This AdaBoost classifier predicts whether a diesel engine requires maintenance based on sensor readings.
|
| 21 |
The model was trained for **commercial fleet predictive maintenance** applications.
|
| 22 |
|
| 23 |
+
## Metric Strategy
|
| 24 |
|
| 25 |
+
**Two-stage approach:**
|
| 26 |
+
1. **Hyperparameter Tuning:** Balanced Accuracy (ensures genuine discrimination)
|
| 27 |
+
2. **Model Selection:** Recall (maximizes failure detection)
|
| 28 |
+
|
| 29 |
+
For predictive maintenance, missing a failure is far more costly than a false alarm.
|
| 30 |
|
| 31 |
## Performance Metrics (Held-Out Test Set)
|
| 32 |
|
| 33 |
| Metric | Value |
|
| 34 |
|--------|-------|
|
| 35 |
+
| **Recall** | **0.9978** |
|
| 36 |
+
| F2 Score | 0.8942 |
|
| 37 |
+
| Balanced Accuracy | 0.5026 |
|
| 38 |
+
| ROC-AUC | 0.6957 |
|
| 39 |
+
| Precision | 0.6317 |
|
| 40 |
|
| 41 |
## Features
|
| 42 |
|
|
|
|
| 82 |
|
| 83 |
## Training Details
|
| 84 |
|
| 85 |
+
- **Algorithm:** AdaBoost
|
| 86 |
- **Hyperparameter Tuning:** Optuna with 3-fold stratified CV
|
| 87 |
- **Scoring:** Balanced Accuracy
|
| 88 |
- **Split:** 75/10/15 (Train/Validation/Test)
|