Browse Source

Missing segments in result #392 (#393)

pull/1/head
Evgeny Smyshlyaev 5 years ago committed by rozetko
parent
commit
08513b8155
  1. 3
      analytics/analytics/detectors/threshold_detector.py

3
analytics/analytics/detectors/threshold_detector.py

@ -59,4 +59,5 @@ class ThresholdDetector(Detector):
}
def recieve_data(self, data: pd.DataFrame, cache: Optional[ModelCache]) -> Optional[dict]:
return self.detect(data, cache)
result = self.detect(data, cache)
return result if result else None

Loading…
Cancel
Save