Browse Source

Reverse peak -> trough

pull/1/head
rozetko 6 years ago
parent
commit
d0a0400fb6
  1. 4
      analytics/detectors/pattern_detector.py
  2. 2
      analytics/models/__init__.py
  3. 2
      analytics/models/trough_model.py

4
analytics/detectors/pattern_detector.py

@ -17,8 +17,8 @@ def resolve_model_by_pattern(pattern: str) -> models.Model:
return models.GeneralModel()
if pattern == 'PEAK':
return models.PeakModel()
if pattern == 'REVERSE_PEAK':
return models.ReversePeakModel()
if pattern == 'TROUGH':
return models.TroughModel()
if pattern == 'DROP':
return models.DropModel()
if pattern == 'JUMP':

2
analytics/models/__init__.py

@ -3,5 +3,5 @@ from models.drop_model import DropModel
from models.peak_model import PeakModel
from models.jump_model import JumpModel
from models.custom_model import CustomModel
from models.reverse_peak_model import ReversePeakModel
from models.trough_model import TroughModel
from models.general_model import GeneralModel

2
analytics/models/reverse_peak_model.py → analytics/models/trough_model.py

@ -11,7 +11,7 @@ from typing import Optional
WINDOW_SIZE = 240
class ReversePeakModel(Model):
class TroughModel(Model):
def __init__(self):
super()
Loading…
Cancel
Save