CSIT-1041: Do not treat positive jumps as outliers 80/12080/4
authorVratko Polak <vrpolak@cisco.com>
Tue, 24 Apr 2018 12:27:30 +0000 (14:27 +0200)
committerTibor Frank <tifrank@cisco.com>
Wed, 25 Apr 2018 13:08:23 +0000 (13:08 +0000)
Change-Id: If6e65faae3b5a31c56f942a7975b5a35f5f6d6a4
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/tools/presentation/utils.py

index 4277aa0..f118afc 100644 (file)
@@ -123,9 +123,9 @@ def split_outliers(input_series, outlier_const=1.5, window=14):
         q1 = np.percentile(y_rolling_array, 25)
         q3 = np.percentile(y_rolling_array, 75)
         iqr = (q3 - q1) * outlier_const
-        low, high = q1 - iqr, q3 + iqr
+        low = q1 - iqr
         item_pd = pd.Series([item_y, ], index=[item_x, ])
-        if low <= item_y <= high:
+        if low <= item_y:
             trimmed_data = trimmed_data.append(item_pd)
         else:
             outliers = outliers.append(item_pd)

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.