Instructions to use zubairH123/agentpulse-failure-predictor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use zubairH123/agentpulse-failure-predictor with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("zubairH123/agentpulse-failure-predictor", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
AgentPulse: local failure-risk scoring, no prompts required
A small CPU-only logistic regression that maps 16 numerical agent telemetry signals to a failure-risk estimate. The JSON weights, scaler, schema, example, and standard-library predictor are included. Runtime inference needs no API key, language model, scikit-learn installation, or executable pickle.
Try the live demo | Dataset | Model | Code and issues
Watch or download the 30-second trailer. The dashboard in the trailer is illustrative; the benchmark below is measured on synthetic data.
Try it locally
Download the repository files, then run from that directory:
python predict.py telemetry.json --model logistic.json
Expected risk for the supplied example: approximately 0.148168, below the validation-selected threshold of 0.30.
Or download the small inference bundle with the Hub client:
from huggingface_hub import snapshot_download
import subprocess
import sys
folder = snapshot_download(
repo_id="zubairH123/agentpulse-failure-predictor",
allow_patterns=["predict.py", "schema.py", "logistic.json", "telemetry.json"],
)
subprocess.run(
[sys.executable, "predict.py", "telemetry.json", "--model", "logistic.json"],
cwd=folder, check=True,
)
Measured held-out results
| Metric | Logistic regression |
|---|---|
| ROC-AUC | 0.7652 |
| PR-AUC | 0.5859 |
| F1 | 0.5637 |
| Accuracy | 0.7190 |
| Recall | 0.6436 |
Training uses 16,000 synthetic runs. Validation uses 2,000 independent runs to select the threshold; test uses another 2,000 runs from disjoint environment IDs. See benchmark.json for the full three-model comparison. The GitHub project includes the training implementation and pinned dependencies.
Intended use and limitations
Use for synthetic reliability experiments, local inference examples, and reproducible baselines. The output is a model estimate, not a guaranteed future failure. Synthetic signals may not transfer to real agents; probability calibration and external validation remain open.
Weights are exported from scikit-learn to a custom portable JSON format. This repository does not configure the Hub's hosted inference widget; use the linked static Space for interactive scoring.
Explore the AgentPulse collection
Reproduce, contribute, and cite
Created by Zubair Hussain | Portfolio. Original code and synthetic data are MIT licensed. source-revision.json records the GitHub source commit and dataset shard hashes; Hugging Face commits record actual publication changes.
Report a problem or propose an experiment. Useful next experiments include probability calibration, feature ablations, and real-world transfer with appropriately sourced telemetry. If this helps your work, a like or a citation helps others discover it.
@software{hussain2026agentpulse,
author = {Hussain, Zubair},
title = {AgentPulse-5G: AI Agent Failure Prediction},
year = {2026},
url = {https://github.com/Zubair-hussain/AgentPulse-5G-AI-Agent-Failure-Prediction}
}
- Downloads last month
- -
Dataset used to train zubairH123/agentpulse-failure-predictor
Space using zubairH123/agentpulse-failure-predictor 1
Collection including zubairH123/agentpulse-failure-predictor
Evaluation results
- ROC-AUC on AgentPulse-5G synthetic demotest set self-reported0.765
- F1 on AgentPulse-5G synthetic demotest set self-reported0.564
- Accuracy on AgentPulse-5G synthetic demotest set self-reported0.719