Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion circleguard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ def filter_outliers(arr, bias=1.5):
iqr = q3 - q1
lower_limit = q1 - (bias * iqr)
upper_limit = q3 + (bias * iqr)
return [x for x in arr if lower_limit < x < upper_limit]
arr_without_outliers = [x for x in arr if lower_limit < x < upper_limit]
return arr if not arr_without_outliers else arr_without_outliers


TRACE = 5
Expand Down