Metadata-Version: 2.4
Name: aria-monitor
Version: 0.1.0
Summary: Autonomous ML model monitoring with agentic root cause diagnosis
License: MIT
Project-URL: Homepage, https://github.com/yourusername/aria-monitor
Project-URL: Repository, https://github.com/yourusername/aria-monitor
Project-URL: Issues, https://github.com/yourusername/aria-monitor/issues
Keywords: mlops,drift-detection,model-monitoring,llm,autonomous-agents
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: numpy>=1.24
Requires-Dist: pandas>=2.0
Requires-Dist: scikit-learn>=1.3
Requires-Dist: scipy>=1.10
Requires-Dist: pyyaml>=6.0
Requires-Dist: requests>=2.28
Provides-Extra: xgboost
Requires-Dist: xgboost>=2.0; extra == "xgboost"
Provides-Extra: shap
Requires-Dist: shap>=0.44; extra == "shap"
Provides-Extra: openai
Requires-Dist: openai>=1.0; extra == "openai"
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.25; extra == "anthropic"
Provides-Extra: all
Requires-Dist: xgboost>=2.0; extra == "all"
Requires-Dist: shap>=0.44; extra == "all"
Requires-Dist: openai>=1.0; extra == "all"
Requires-Dist: anthropic>=0.25; extra == "all"

p# aria-monitor

**Autonomous ML model monitoring with agentic root cause diagnosis.**

ARIA detects when your production ML model starts degrading — and tells you *why* in plain English, using an injected LLM agent that reasons over raw drift signals before any action is taken.

## Install

```bash
pip install aria-monitor
```

## Quickstart — 3 lines

```python
from aria import ARIA

aria = ARIA(model=clf, feature_names=X_train.columns.tolist(), config="aria.yaml")
result = aria.monitor(X_train, X_production)
print(result.summary)
```

## What it does

- **Drift Detection** — PSI + KS tests per feature, computed from scratch (no Evidently dependency)
- **Performance Monitoring** — tracks accuracy, F1, ROC-AUC degradation over time
- **Explainability** — SHAP-based feature importance shifts between training and production
- **Alerting** — console, JSON, or Slack alerts
- **LLM Diagnosis** — an LLM agent receives raw signals and reasons about root cause autonomously

## Works without an LLM

```python
# No Ollama, no API key needed — drift scores still returned
aria = ARIA(model=clf, feature_names=features)
result = aria.monitor(X_train, X_new)
```

## Swap LLM backends

```yaml
# aria.yaml
llm:
  backend: "ollama"    # or "openai" or "claude" or "none"
  model: "qwen2.5:3b"
```

One line at the entry point. All agents upgrade instantly.

## Supports any sklearn-compatible model

```python
from aria import ARIA
from aria.adapters import XGBoostAdapter, SklearnAdapter

# Auto-detected for XGBoost and sklearn
aria = ARIA(model=your_model, feature_names=features)

# Or pass adapter explicitly for custom models
aria = ARIA(model=your_model, feature_names=features, adapter=YourCustomAdapter(your_model, features))
```

## Optional dependencies

```bash
pip install aria-monitor[xgboost]    # XGBoost support
pip install aria-monitor[shap]       # SHAP explainability
pip install aria-monitor[openai]     # OpenAI LLM backend
pip install aria-monitor[anthropic]  # Claude LLM backend
pip install aria-monitor[all]        # Everything
```

## License

MIT
