Commit 6cc15f6
feat(ml): add 4 innovation kernels - streaming anomaly and explainability (98 total)
Add 4 new ML kernels for real-time anomaly detection and model explainability:
Streaming Anomaly Detection:
- StreamingIsolationForest: Online anomaly detection with sliding window,
incremental forest updates, and configurable rebuild intervals.
- AdaptiveThreshold: Self-adjusting thresholds with Welford's online
statistics, concept drift detection, and optional ground truth feedback.
Explainability:
- SHAPValues: Kernel SHAP approximation for model-agnostic feature
explanations. Supports both sampling and weighted regression methods.
- FeatureImportance: Permutation-based importance with multiple metrics
(accuracy, MSE, MAE, R2) and ranking output.
All 50 ML tests pass. Kernel count: 8 → 12 in ML crate, 98 total.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent ace3f16 commit 6cc15f6
5 files changed
Lines changed: 1880 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments