Views
No views yet
| Metric | Value |
|---|---|
| Test MAE | 44.80 |
| Test R² | 0.4366 |
| CV R² (5-fold) | 0.3543 |
| Feature | Importance |
|---|---|
| bmi | 0.3688 |
| s5 | 0.2360 |
| bp | 0.0869 |
| s2 | 0.0763 |
| age | 0.0559 |
| s6 | 0.0495 |
| s1 | 0.0474 |
| s3 | 0.0392 |
| s4 | 0.0277 |
| sex | 0.0122 |
1import joblib
2from huggingface_hub import hf_hub_download
3
4model_path = hf_hub_download(repo_id="Soulay/diabetes-predictor", filename="model.joblib")
5model = joblib.load(model_path)
6
7# [age, sex, bmi, bp, s1, s2, s3, s4, s5, s6] (standardised values)
8prediction = model.predict([[0.05, -0.04, 0.06, 0.02, -0.01, 0.0, -0.03, 0.04, 0.02, -0.01]])
9print(prediction) # e.g. [152.3]main.