Browse Source

hotfix: make server.py run

pull/1/head
rozetko 6 years ago
parent
commit
60f1306ed5
  1. 4
      analytics/detectors/general_detector/general_detector.py
  2. 4
      analytics/detectors/pattern_detector.py

4
analytics/detectors/general_detector/general_detector.py

@ -1,6 +1,6 @@
from detectors.general_detector.supervised_algorithm import SupervisedAlgorithm from detectors.general_detector.supervised_algorithm import SupervisedAlgorithm
import utils import utils
from grafana_data_provider import GrafanaDataProvider # from grafana_data_provider import GrafanaDataProvider
from data_preprocessor import data_preprocessor from data_preprocessor import data_preprocessor
import pandas as pd import pandas as pd
import logging import logging
@ -93,7 +93,9 @@ class GeneralDetector:
return SupervisedAlgorithm() return SupervisedAlgorithm()
def __save_model(self): def __save_model(self):
pass
# TODO: use data_service to save anything # TODO: use data_service to save anything
def __load_model(self): def __load_model(self):
pass
# TODO: use data_service to save anything # TODO: use data_service to save anything

4
analytics/detectors/pattern_detector.py

@ -1,7 +1,7 @@
import models import models
import utils import utils
from grafana_data_provider import GrafanaDataProvider # from grafana_data_provider import GrafanaDataProvider
import logging import logging
from urllib.parse import urlparse from urllib.parse import urlparse
@ -82,7 +82,9 @@ class PatternDetector:
self.data_prov.synchronize() self.data_prov.synchronize()
def __save_model(self): def __save_model(self):
pass
# TODO: use data_service to save anything # TODO: use data_service to save anything
def __load_model(self, pattern): def __load_model(self, pattern):
pass
# TODO: use data_service to save anything # TODO: use data_service to save anything

Loading…
Cancel
Save