Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#133 indicator anomaly detection [WIP DO NOT MERGE] #230

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion db/init/06-indicator-type.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ INSERT INTO base.indicator_type (name, module, class, method) VALUES
('Completeness', 'completeness', 'Completeness', 'execute')
, ('Freshness', 'freshness', 'Freshness', 'execute')
, ('Latency', 'latency', 'Latency', 'execute')
, ('Validity', 'validity', 'Validity', 'execute');
, ('Validity', 'validity', 'Validity', 'execute')
, ('Anomaly Detection', 'anomaly_detection', 'AnomalyDetection', 'execute');
13 changes: 13 additions & 0 deletions scripts/init/anomaly_detection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""Manage class and methods for data anomaly indicators."""
import logging
from indicator import Indicator

# Load logging configuration
log = logging.getLogger(__name__)


class AnomalyDetection(Indicator):
"""Class used to compute indicators of type anomaly detection."""

def execute(self, session: dict):
pass
1 change: 1 addition & 0 deletions scripts/init/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import freshness # Called dynamically with getattr pylint: disable=W0611
import latency # Called dynamically with getattr pylint: disable=W0611
import validity # Called dynamically with getattr pylint: disable=W0611
import anomaly_detection # Called dynamically with getattr pylint: disable=W0611
import utils
from session import update_session_status

Expand Down
1 change: 1 addition & 0 deletions scripts/init/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ class IndicatorType:
FRESHNESS = 2
LATENCY = 3
VALIDITY = 4
ANOMALY_DETECTION = 5