Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: dashboard/dashboard/bench_find_anomalies.py

Issue 1726273002: Fix lambda expressions in bench_find_anomalies.py (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/bench_find_anomalies.py
diff --git a/dashboard/dashboard/bench_find_anomalies.py b/dashboard/dashboard/bench_find_anomalies.py
index d24c7d6b78f01ae9b660905533209663a77cd4f1..ae0ff63c722785af5513e2781936ebea9524c8af 100644
--- a/dashboard/dashboard/bench_find_anomalies.py
+++ b/dashboard/dashboard/bench_find_anomalies.py
@@ -66,22 +66,22 @@ _EXPERIMENTAL_FUNCTIONS = {
'find_change_points_default': find_change_points_exp.RunFindChangePoints,
'find_change_points_absolute_change_threshold':
find_change_points_exp.FindChangePointsWithAbsoluteChangeThreshold,
- 'segment_size_4': lambda(test, series):
+ 'segment_size_4': lambda test, series:
find_change_points_exp.RunFindChangePoints(
test, series, min_segment_size=4),
- 'segment_size_8': lambda(test, series):
+ 'segment_size_8': lambda test, series:
find_change_points_exp.RunFindChangePoints(
test, series, min_segment_size=8),
- 'steppiness_0_1': lambda(test, series):
+ 'steppiness_0_1': lambda test, series:
find_change_points_exp.RunFindChangePoints(
test, series, min_steppiness=0.1),
- 'steppiness_0_5': lambda(test, series):
+ 'steppiness_0_5': lambda test, series:
find_change_points_exp.RunFindChangePoints(
test, series, min_steppiness=0.5),
- 'std_dev_2': lambda(test, series):
+ 'std_dev_2': lambda test, series:
find_change_points_exp.RunFindChangePoints(
test, series, multiple_of_std_dev=2.0),
- 'std_dev_3': lambda(test, series):
+ 'std_dev_3': lambda test, series:
find_change_points_exp.RunFindChangePoints(
test, series, multiple_of_std_dev=3.0),
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698