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 +11 -28
model_metadata.json
CHANGED
|
@@ -8,41 +8,24 @@
|
|
| 8 |
"Fuel Pressure",
|
| 9 |
"Coolant Pressure",
|
| 10 |
"Lub Oil Temp",
|
| 11 |
-
"Coolant Temp"
|
| 12 |
-
"RPM_x_OilPressure",
|
| 13 |
-
"RPM_x_FuelPressure",
|
| 14 |
-
"RPM_x_CoolantPressure",
|
| 15 |
-
"OilTemp_x_OilPressure",
|
| 16 |
-
"CoolantTemp_x_CoolantPressure",
|
| 17 |
-
"RPM_squared",
|
| 18 |
-
"OilPressure_squared",
|
| 19 |
-
"TempDiff",
|
| 20 |
-
"OilFuelPressureRatio",
|
| 21 |
-
"CoolantOilPressureRatio",
|
| 22 |
-
"OilHealthIndex",
|
| 23 |
-
"CoolantStress",
|
| 24 |
-
"OilTempPerRPM",
|
| 25 |
-
"CoolantTempPerRPM",
|
| 26 |
-
"PressureSum",
|
| 27 |
-
"TempSum"
|
| 28 |
],
|
| 29 |
-
"n_features":
|
| 30 |
"target": "Engine Condition",
|
| 31 |
"threshold": 0.5,
|
| 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 |
-
"n_estimators": "
|
| 41 |
-
"max_depth": "
|
| 42 |
"min_samples_split": "3",
|
| 43 |
-
"min_samples_leaf": "
|
| 44 |
-
"max_features": "
|
| 45 |
-
"class_weight": "balanced_subsample"
|
| 46 |
},
|
| 47 |
"training_info": {
|
| 48 |
"cv_folds": 3,
|
|
|
|
| 8 |
"Fuel Pressure",
|
| 9 |
"Coolant Pressure",
|
| 10 |
"Lub Oil Temp",
|
| 11 |
+
"Coolant Temp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
],
|
| 13 |
+
"n_features": 6,
|
| 14 |
"target": "Engine Condition",
|
| 15 |
"threshold": 0.5,
|
| 16 |
"test_metrics": {
|
| 17 |
+
"balanced_accuracy": 0.6478906596635128,
|
| 18 |
+
"roc_auc": 0.6979015521259287,
|
| 19 |
+
"recall": 0.5995670995670995,
|
| 20 |
+
"precision": 0.7710508002783577,
|
| 21 |
+
"f2": 0.6274776305357345
|
| 22 |
},
|
| 23 |
"best_params": {
|
| 24 |
+
"n_estimators": "480",
|
| 25 |
+
"max_depth": "5",
|
| 26 |
"min_samples_split": "3",
|
| 27 |
+
"min_samples_leaf": "3",
|
| 28 |
+
"max_features": "None"
|
|
|
|
| 29 |
},
|
| 30 |
"training_info": {
|
| 31 |
"cv_folds": 3,
|