Skip to content

Commit

Permalink
tests: update capa tests using penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
Tveten committed Dec 27, 2024
1 parent 70f75dd commit 74a5f9d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions skchange/anomaly_detectors/tests/test_capa.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_capa_anomalies(Detector, Saving):
pytest.skip("Skipping test for MVCAPA with multivariate saving.")

n_segments = 2
seg_len = 20
seg_len = 50
p = 5
df = generate_alternating_data(
n_segments=n_segments,
Expand All @@ -47,8 +47,7 @@ def test_capa_anomalies(Detector, Saving):
)
detector = Detector(
segment_saving=saving,
segment_penalty_scale=2.0,
min_segment_length=p + 1,
min_segment_length=20,
ignore_point_anomalies=True, # To get test coverage.
)
anomalies = detector.fit_predict(df)
Expand Down

0 comments on commit 74a5f9d

Please sign in to comment.