Views
No views yet
PhailomXgboost_dm_model.pkl. I’ve preserved all the technical details but translated and refined for an international scientific audience.1license: unknown # TODO: choose a license (e.g., mit, apache-2.0, cc-by-4.0)
2library_name: xgboost
3tags:
4 - xgboost
5 - classification
6 - tabular-data
7 - healthcare
8 - NCD
9 - diabetes-risk
10language:
11 - en
12 - th
13model-index:
14 - name: PhailomXgboost_dm_model
15 results:
16 - task:
17 type: tabular-classification
18 dataset:
19 name: TODO-dataset-name
20 type: private
21 split: test
22 metrics:
23 - type: accuracy
24 value: TODO
25 - type: f1
26 value: TODO
27 - type: roc_auc
28 value: TODOTODO: Fill in exact feature schema, units (e.g., mmHg, kg, cm), and preprocessing methods.
multi:softprob (multi-class probability prediction).max_depth, learning_rate (eta), subsample, colsample_bytree, min_child_weight, n_estimators.TODO: Insert actual hyperparameters and results.
| Metric | Test Set |
|---|---|
| Accuracy | TODO |
| Macro F1 | TODO |
| ROC-AUC (OVR) | TODO |
Pred:Normal Pred:At-Risk Pred:Diabetic
True:Normal TODO TODO TODO
True:At-Risk TODO TODO TODO
True:Diabetic TODO TODO TODO1expected_columns = [
2 "age_group", "record_id", "age", "village_no", "village_name", "screening_date",
3 "bp_systolic", "bp_diastolic", "weight", "height",
4 # ... add remaining features
5]TODO: Fill with the exact column list and datatypes.
1import pickle, pandas as pd
2
3with open("PhailomXgboost_dm_model.pkl", "rb") as f:
4 model = pickle.load(f)
5
6X = pd.DataFrame([{
7 "age_group": "60-69",
8 "record_id": 1,
9 "age": 64,
10 "village_no": 5,
11 "village_name": "SampleVillage",
12 "screening_date": "2025-07-01",
13 "bp_systolic": 146,
14 "bp_diastolic": 90,
15 "weight": 68.0,
16 "height": 160.0,
17 # ... include all expected features
18}], columns=expected_columns)
19
20proba = model.predict_proba(X)[0]
21pred = model.classes_[proba.argmax()]
22print(pred, proba)model.get_booster().save_model("model.json")42requirements.txtTODO: Add references or project details for citation.