This is an automated email from the ASF dual-hosted git repository.
xqhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 2341d3f7b7d Remove relative change threshold condition (#37643)
2341d3f7b7d is described below
commit 2341d3f7b7d965a64e33ea0b5644e08d2bc94bcf
Author: liferoad <[email protected]>
AuthorDate: Tue Feb 24 21:22:28 2026 -0500
Remove relative change threshold condition (#37643)
* Remove relative change threshold condition for identifying valid change
points.
* Remove unused epsilon variable from `_find_valid_change_points`.
---
sdks/python/apache_beam/testing/analyzers/perf_analysis_utils.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/sdks/python/apache_beam/testing/analyzers/perf_analysis_utils.py
b/sdks/python/apache_beam/testing/analyzers/perf_analysis_utils.py
index 0ca4514443f..62a0ec67649 100644
--- a/sdks/python/apache_beam/testing/analyzers/perf_analysis_utils.py
+++ b/sdks/python/apache_beam/testing/analyzers/perf_analysis_utils.py
@@ -304,7 +304,6 @@ def filter_change_points_by_median_threshold(
value of threshold is 0.05.
"""
valid_change_points = []
- epsilon = 1e-10 # needed to avoid division by zero.
for idx in change_points:
if idx == 0 or idx == len(data):
@@ -331,11 +330,6 @@ def filter_change_points_by_median_threshold(
(left_mad + right_mad)):
valid_change_points.append(idx)
continue
-
- relative_change = abs(right_value - left_value) / (left_value + epsilon)
-
- if relative_change > threshold:
- valid_change_points.append(idx)
return valid_change_points