Views
No views yet
1{
2 "learning_rate": 0.05,
3 "n_estimators": 100
4}1import joblib
2from huggingface_hub import hf_hub_download
3
4# Download model
5model_path = hf_hub_download(
6 repo_id="SharleyK/predictive-maintenance-model",
7 filename="best_model.pkl"
8)
9
10# Load model
11model = joblib.load(model_path)
12
13# Download scaler
14scaler_path = hf_hub_download(
15 repo_id="SharleyK/predictive-maintenance-model",
16 filename="scaler.pkl"
17)
18scaler = joblib.load(scaler_path)
19
20# Make predictions
21X_new_scaled = scaler.transform(X_new)
22predictions = model.predict(X_new_scaled)
23probabilities = model.predict_proba(X_new_scaled)
24
25# Interpret results
26# 0 = Normal/Healthy Engine
27# 1 = Faulty/Requires Maintenance@model{predictive_maintenance_engine_model,
author = {SharleyK},
title = {Predictive Maintenance Model - Engine Failure Prediction},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/SharleyK/predictive-maintenance-model}
}