gerar444 commited on
Commit
be69bed
·
verified ·
1 Parent(s): e078bbd

AD: lead with one-call charm_knn_scores / charm_zero_shot_scores

Browse files

Sync the CHARM skill + AD demo with the one-call best recipe (PR #1590 in the source repo).

- SKILL.md 'Detect without labels' bullet now starts users on charm_knn_scores (clean reference) / charm_zero_shot_scores (none) instead of the single-scale building blocks.
- demo_retrieval_anomaly_detection.ipynb imports the two one-call functions at the top and adds a 'Start here - one call' section before Approaches A-D, so the first runnable AD path is the VUS-PR 0.631 recipe rather than the weaker single-window min-max pipeline.

notebooks/demo_retrieval_anomaly_detection.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
skills/charm/SKILL.md CHANGED
@@ -71,8 +71,9 @@ These patterns are starting points; combine them:
71
  - **Detect without labels.** Score windows by distance to normal behavior. Add cheap window
72
  statistics, because normalized embeddings miss level shifts and spikes. With no clean
73
  reference, bootstrap one — and show the user *which* periods were selected as normal before
74
- trusting the scores. The recipes are ranked in `anomaly-detection.md`, which also has a
75
- symptom→knob tuning guide (window, stride, k, distance, pooling) and an evaluation snippet.
 
76
  - **Embeddings as features.** Feed vectors, plus window statistics and metadata you already have,
77
  into sklearn models. This is the fastest supervised baseline.
78
  - **Escalate to a trained head only when needed.** If a zero-shot or sklearn baseline falls short
 
71
  - **Detect without labels.** Score windows by distance to normal behavior. Add cheap window
72
  statistics, because normalized embeddings miss level shifts and spikes. With no clean
73
  reference, bootstrap one — and show the user *which* periods were selected as normal before
74
+ trusting the scores. Start with `charm_knn_scores` (clean reference) or
75
+ `charm_zero_shot_scores` (none): each runs the best recipe in one call. `anomaly-detection.md` explains
76
+ them and the lower-level building blocks, with a symptom→knob tuning guide and an evaluation snippet.
77
  - **Embeddings as features.** Feed vectors, plus window statistics and metadata you already have,
78
  into sklearn models. This is the fastest supervised baseline.
79
  - **Escalate to a trained head only when needed.** If a zero-shot or sklearn baseline falls short