Downloads · 30 days
0
Nucha/PhailomNCDs
PhailomNCDs is a machine learning model from Nucha. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Got it! Here’s the English version of the Hugging Face–ready Model Card draft for your file PhailomXgboostdmmodel.pkl. I’ve preserved all the technical details but translated and refined for an international scientifi…
Downloads · 30 days
0
Access
Public
Updated Aug 16, 2025
Repo size
873 KB
Likes
0
Public
Click a slice to open those files.
.pkl873 KB · 99%
From the Hugging Face model README
Got it! Here’s the English version of the Hugging Face–ready Model Card draft for your file PhailomXgboost_dm_model.pkl. I’ve preserved all the technical details but translated and refined for an international scientific audience.
license: unknown # TODO: choose a license (e.g., mit, apache-2.0, cc-by-4.0)
library_name: xgboost
tags:
- xgboost
- classification
- tabular-data
- healthcare
- NCD
- diabetes-risk
language:
- en
- th
model-index:
- name: PhailomXgboost_dm_model
results:
- task:
type: tabular-classification
dataset:
name: TODO-dataset-name
type: private
split: test
metrics:
- type: accuracy
value: TODO
- type: f1
value: TODO
- type: roc_auc
value: TODO
PhailomXgboost_dm_model is an XGBoost classifier developed for early-stage screening of non-communicable diseases (NCDs), with a focus on diabetes risk prediction using community health screening data. The model outputs three classes: Normal, At-Risk, and Diabetic, making it suitable for cost-effective and rapid community-level health assessments.
Intended use
Not for
Limitations
Source: community health screening dataset (private, internal project).
Dataset size: ~3,418 records (balanced across Normal, At-Risk, Diabetic).
Example features:
TODO: Fill in exact feature schema, units (e.g., mmHg, kg, cm), and preprocessing methods.
Model: XGBoost (tree-based gradient boosting), multi-class classification.
Objective: multi:softprob (multi-class probability prediction).
Preprocessing:
Hyperparameters tuned: max_depth, learning_rate (eta), subsample, colsample_bytree, min_child_weight, n_estimators.
Evaluation Metrics: Accuracy, Macro-F1, ROC-AUC (One-vs-Rest).
TODO: Insert actual hyperparameters and results.
| Metric | Test Set |
|---|---|
| Accuracy | TODO |
| Macro F1 | TODO |
| ROC-AUC (OVR) | TODO |
Confusion Matrix (example format)
Pred:Normal Pred:At-Risk Pred:Diabetic
True:Normal TODO TODO TODO
True:At-Risk TODO TODO TODO
True:Diabetic TODO TODO TODO
Expected columns must match the training pipeline order. Example schema from project context:
expected_columns = [
"age_group", "record_id", "age", "village_no", "village_name", "screening_date",
"bp_systolic", "bp_diastolic", "weight", "height",
# ... add remaining features
]
TODO: Fill with the exact column list and datatypes.
import pickle, pandas as pd
with open("PhailomXgboost_dm_model.pkl", "rb") as f:
model = pickle.load(f)
X = pd.DataFrame([{
"age_group": "60-69",
"record_id": 1,
"age": 64,
"village_no": 5,
"village_name": "SampleVillage",
"screening_date": "2025-07-01",
"bp_systolic": 146,
"bp_diastolic": 90,
"weight": 68.0,
"height": 160.0,
# ... include all expected features
}], columns=expected_columns)
proba = model.predict_proba(X)[0]
pred = model.classes_[proba.argmax()]
print(pred, proba)
model.get_booster().save_model("model.json")
42Attach:
requirements.txtTODO: Add references or project details for citation.