Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
remove iforest
Browse files Browse the repository at this point in the history
  • Loading branch information
lxd1190 committed Mar 22, 2019
1 parent 1a8eab9 commit 5490207
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions time_series_detector/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ def value_predict(self, data):
statistic_result = self.statistic_obj.predict(time_series)
ewma_result = self.ewma_obj.predict(time_series)
polynomial_result = self.polynomial_obj.predict(time_series, window)
iforest_result = self.iforest_obj.predict(time_series, window)
if statistic_result == 0 or ewma_result == 0 or polynomial_result == 0 or iforest_result == 0:
if statistic_result == 0 or ewma_result == 0 or polynomial_result == 0 :
xgb_result = self.supervised_obj.predict(time_series, window, model_name)
res_value = xgb_result[0]
prob = xgb_result[1]
Expand Down

0 comments on commit 5490207

Please sign in to comment.