Downloads · 30 days
0
mrsindhunugroho/stacking-ensemble-learning
stacking-ensemble-learning is a tabular classification model from mrsindhunugroho. 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 sklearn. The card lists the license as apache-2.0.
Stacking ensemble (XGBoost + CatBoost + LightGBM + AdaBoost) for base mdoel with Random Forest as meta-model for Network Intrusion Detection System (IDS).
Downloads · 30 days
0
Access
Public
Updated May 6, 2026
Repo size
5 MB
Likes
1
Public
Click a slice to open those files.
.pkl2.5 MB · 100%
From the Hugging Face model README
Stacking ensemble (XGBoost + CatBoost + LightGBM + AdaBoost) for base mdoel with Random Forest as meta-model for Network Intrusion Detection System (IDS).
| Model | Accuracy | F1 |
|---|---|---|
| XGBoost | 1.0000 | 1.0000 |
| CatBoost | 0.9998 | 0.9998 |
| LightGBM | 0.4441 | 0.5403 |
| AdaBoost | 0.9911 | 0.9907 |
pip install scikit-learn xgboost catboost lightgbm pandas numpy joblib huggingface_hub
import joblib
import numpy as np
from huggingface_hub import hf_hub_download
models = {k: joblib.load(hf_hub_download("mrsindhunugroho/stacking-ensemble-learning", f"models/{k}_model.pkl"))
for k in ["xgboost", "catboost", "lightgbm", "adaboost"]}
meta = joblib.load(hf_hub_download("mrsindhunugroho/stacking-ensemble-learning", "models/meta_model.pkl"))
le = joblib.load(hf_hub_download("mrsindhunugroho/stacking-ensemble-learning", "models/label_encoder.pkl"))
base_preds = np.column_stack([m.predict(X) for m in models.values()])
y_pred = le.inverse_transform(meta.predict(base_preds))
Sindhu Nugroho — ORCID