|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
|
|
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 |
|
|
@ -9,6 +10,7 @@ import os.path |
|
|
|
import json |
|
|
|
import json |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NANOSECONDS_IN_MS = 1000000 |
|
|
|
NANOSECONDS_IN_MS = 1000000 |
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger('analytic_toolset') |
|
|
|
logger = logging.getLogger('analytic_toolset') |
|
|
@ -120,8 +122,7 @@ class GeneralDetector: |
|
|
|
return json.load(file) |
|
|
|
return json.load(file) |
|
|
|
|
|
|
|
|
|
|
|
def create_algorithm(self): |
|
|
|
def create_algorithm(self): |
|
|
|
from supervised_algorithm import supervised_algorithm |
|
|
|
return SupervisedAlgorithm() |
|
|
|
return supervised_algorithm() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def __save_model(self): |
|
|
|
def __save_model(self): |
|
|
|
logger.info("Save model '%s'" % self.anomaly_name) |
|
|
|
logger.info("Save model '%s'" % self.anomaly_name) |