def __init__(self): self.sample_op_obj = sample_op.SampleOperation() self.anomaly_op_obj = anomaly_op.AbnormalOperation() self.iforest_obj = isolation_forest.IForest() self.ewma_obj = ewma.Ewma() self.polynomial_obj = polynomial_interpolation.PolynomialInterpolation() self.statistic_obj = statistic.Statistic() self.supervised_obj = xgboosting.XGBoosting()
def __init__(self): self.sample_op_obj = sample_op.SampleOperation() self.anomaly_op_obj = anomaly_op.AbnormalOperation() self.detect_obj = detect.Detect() self.client = influxdb.InfluxDBClient(database.INFLUX_HOST, database.INFLUX_PORT, database.INFLUX_USER, database.INFLUX_PASSWD, database.INFLUX_DB_NAME)
def __init__(self): self.sample_op_obj = sample_op.SampleOperation() self.anomaly_op_obj = anomaly_op.AbnormalOperation() self.detect_obj = detect.Detect()