From 35ee401530b0b12f5e746ebf02d612758198c695 Mon Sep 17 00:00:00 2001 From: tveten Date: Sat, 23 Nov 2024 01:36:10 +0100 Subject: [PATCH] tests: fix saving_evaluate test Error in previous commit. --- skchange/anomaly_scores/tests/test_from_cost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skchange/anomaly_scores/tests/test_from_cost.py b/skchange/anomaly_scores/tests/test_from_cost.py index 5264952..f7c1800 100644 --- a/skchange/anomaly_scores/tests/test_from_cost.py +++ b/skchange/anomaly_scores/tests/test_from_cost.py @@ -54,7 +54,7 @@ def test_saving_evaluate(cost_class): saving = Saving(baseline_cost=cost) X = np.random.randn(100, 1) saving.fit(X) - intervals = np.array([[0, 5, 10, 15], [5, 10, 15, 20], [10, 15, 20, 25]]) + intervals = np.array([[0, 10], [10, 20], [20, 30]]) savings = saving.evaluate(intervals) assert savings.shape == (3, 1)