Skip to content

Commit

Permalink
tests: fix saving_evaluate test
Browse files Browse the repository at this point in the history
Error in previous commit.
  • Loading branch information
Tveten committed Nov 23, 2024
1 parent b4f54ed commit 35ee401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skchange/anomaly_scores/tests/test_from_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 35ee401

Please sign in to comment.