Skip to content

Commit

Permalink
Fix change point analysis unit test (#30244)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandInguva authored Feb 9, 2024
1 parent 5a4b458 commit 4c2b8b1
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
from apache_beam.testing.analyzers.perf_analysis_utils import MetricContainer
from apache_beam.testing.analyzers.perf_analysis_utils import TestConfigContainer
from apache_beam.testing.analyzers.perf_analysis_utils import is_change_point_in_valid_window
from apache_beam.testing.analyzers.perf_analysis_utils import is_edge_change_point
from apache_beam.testing.analyzers.perf_analysis_utils import is_sibling_change_point
from apache_beam.testing.analyzers.perf_analysis_utils import e_divisive
from apache_beam.testing.analyzers.perf_analysis_utils import filter_change_points_by_median_threshold
Expand Down Expand Up @@ -266,11 +265,6 @@ def read_csv(path):

def test_change_point_on_edge_segment(self):
data = [1] * 50 + [100]
change_points = find_change_points(data)
self.assertEqual(change_points, [50])

self.assertEqual(is_edge_change_point(change_points[0], len(data)), True)

self.assertEqual(find_latest_change_point_index(data), None)


Expand Down

0 comments on commit 4c2b8b1

Please sign in to comment.