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 model_metadata.json with huggingface_hub
Browse files- model_metadata.json +15 -8
model_metadata.json
CHANGED
|
@@ -28,13 +28,18 @@
|
|
| 28 |
],
|
| 29 |
"n_features": 22,
|
| 30 |
"target": "Engine Condition",
|
| 31 |
-
"threshold": 0.
|
| 32 |
"test_metrics": {
|
| 33 |
-
"balanced_accuracy": 0.
|
| 34 |
-
"roc_auc": 0.
|
| 35 |
-
"recall": 0.
|
| 36 |
-
"precision": 0.
|
| 37 |
-
"f2": 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
},
|
| 39 |
"best_params": {
|
| 40 |
"base_max_depth": "3",
|
|
@@ -42,8 +47,10 @@
|
|
| 42 |
"learning_rate": "0.2608158369431769"
|
| 43 |
},
|
| 44 |
"training_info": {
|
| 45 |
-
"
|
| 46 |
-
"
|
|
|
|
|
|
|
| 47 |
"test_samples": 2931
|
| 48 |
}
|
| 49 |
}
|
|
|
|
| 28 |
],
|
| 29 |
"n_features": 22,
|
| 30 |
"target": "Engine Condition",
|
| 31 |
+
"threshold": 0.3162792985767373,
|
| 32 |
"test_metrics": {
|
| 33 |
+
"balanced_accuracy": 0.5026111930544064,
|
| 34 |
+
"roc_auc": 0.6956703461204846,
|
| 35 |
+
"recall": 0.9978354978354979,
|
| 36 |
+
"precision": 0.631723192874272,
|
| 37 |
+
"f2": 0.8941906701580836
|
| 38 |
+
},
|
| 39 |
+
"test_metrics_at_default_threshold": {
|
| 40 |
+
"recall": 0.8463203463203464,
|
| 41 |
+
"precision": 0.6838653257542632,
|
| 42 |
+
"f2": 0.8079347039983469
|
| 43 |
},
|
| 44 |
"best_params": {
|
| 45 |
"base_max_depth": "3",
|
|
|
|
| 47 |
"learning_rate": "0.2608158369431769"
|
| 48 |
},
|
| 49 |
"training_info": {
|
| 50 |
+
"cv_folds": 3,
|
| 51 |
+
"scoring": "balanced_accuracy",
|
| 52 |
+
"train_samples": 14651,
|
| 53 |
+
"val_samples": 1953,
|
| 54 |
"test_samples": 2931
|
| 55 |
}
|
| 56 |
}
|