Text Classification
Scikit-learn
Joblib
ai-systems
routing
orchestration
agents
memory
validation
interoperability
physical-ai
Instructions to use ai-systems/system-router with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use ai-systems/system-router with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("ai-systems/system-router", "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
File size: 428 Bytes
9b14733 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from joblib import load
router = load("system-router.joblib")
queries = [
"Use a human approval step before an agent can deploy code",
"Route hard reasoning tasks to a stronger model",
"Store long-term memories for a persistent agent"
]
for q in queries:
label = router.predict([q])[0]
scores = router.predict_proba([q])[0]
confidence = scores.max()
print(f"{q}\n -> {label} ({confidence:.2f})")
|