Downloads · 30 days
0
Gaballa-ML/xgboost-diabetes-pima-project
xgboost-diabetes-pima-project is a tabular classification model from Gaballa-ML. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. It is set up for xgboost. The card lists the license as mit.
Trained on the Pima Indians Diabetes Dataset using GridSearchCV.
Downloads · 30 days
0
Access
Public
Updated Jan 5, 2026
Repo size
121 KB
Likes
0
Public
Click a slice to open those files.
.pkl121 KB · 98%
From the Hugging Face model README
Trained on the Pima Indians Diabetes Dataset using GridSearchCV.
from huggingface_hub import hf_hub_download
import pickle
model_path = hf_hub_download(repo_id="Gaballa-ML/xgboost-diabetes-pima-project", filename="model.pkl")
with open(model_path, 'rb') as f:
model = pickle.load(f)
# Predict: [Pregnancies, Glucose, BloodPressure, SkinThickness, Insulin, BMI, DiabetesPedigreeFunction, Age]
prediction = model.predict([[6, 148, 72, 35, 0, 33.6, 0.627, 50]])
print("Diabetes Prediction (0=No, 1=Yes):", prediction[0])