Commit c809d08
Fix test_exclude_detection_from_training: use days_back and backfill_days correctly
The test was failing because detection_period parameter was overriding
backfill_days, causing the detection period to span all 14 days of data
instead of just the last 7 days. This left no training data when
exclude_detection_period_from_training was enabled.
Fixed by:
- Removing training_period and detection_period parameters
- Setting days_back: 14 (scoring window includes both periods)
- Setting backfill_days: 7 (detection period is last 7 days)
This properly splits the data into:
- Training period: days 14-8 (7 days of normal data)
- Detection period: days 7-1 (7 days of anomalous data)
Test now passes locally with postgres.
Co-Authored-By: Yosef Arbiv <[email protected]>1 parent e3b3ad2 commit c809d08
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 149 | + | |
| 150 | + | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
0 commit comments