How exathlonbenchmark/divad works
Exathlon is a benchmark and pipeline for unsupervised anomaly detection and explanation on multivariate time series, including Spark traces and ASD data. Users configure and launch pipeline steps; the runner sequences dataset preparation, feature building, windowing, model/scorer training and online detection, then evaluates detection and optionally trains and evaluates explainers. The repository also includes multiple detector families and point- and range-based metrics. Edges are limited to relationships named by the README or SOURCE INDEX; some implementation details are unsampled, so those links are omitted.
Main entry points: run.py Pipeline runner · detectors Detector families · evaluation.py Detection metrics · divad.py DIVAD detector
Components 30
Pipeline orchestration
- Pipeline runner
exathlon/run.py - Configuration
exathlon/utils/config.py - Pipeline outputs
Data preparation
- Dataset creation
exathlon/data/make_datasets.py - Dataset managers
exathlon/data/managers - Sequence data helpers
exathlon/data/helpers.py - Feature building
exathlon/features/build_features.py - Feature transformers
exathlon/features/transformers.py - Window datasets
exathlon/detection/windows/window_manager.py - Prepared data files
Anomaly detection
- Detector families
exathlon/detection/detectors - DIVAD detector
exathlon/detection/detectors/divad.py - Detector base
exathlon/detection/detectors/base.py - Detector helpers
exathlon/detection/detectors/helpers/general.py - TensorFlow helpers
exathlon/detection/detectors/helpers/tf_helpers.py - Window model training
exathlon/detection/train_window_model.py - Scorer training
exathlon/detection/train_window_scorer.py - Online training
exathlon/detection/train_online_detector.py - Online scoring
exathlon/detection/train_online_scorer.py
Evaluation
- Detection evaluation
exathlon/detection/evaluate_online_detector.py - Scorer evaluation
exathlon/detection/evaluate_online_scorer.py - Detection metrics
exathlon/detection/metrics/evaluation.py - Point evaluator
exathlon/detection/metrics/evaluators/point.py - Range evaluator
exathlon/detection/metrics/evaluators/range.py
Anomaly explanation
- Explainer training
exathlon/explanation/train_explainer.py - Explainer methods
exathlon/explanation/explainers - MacroBase explainer
exathlon/explanation/explainers/data_explainers/macrobase.py - Explanation evaluation
exathlon/explanation/evaluate_explainer.py - Explanation metrics
exathlon/explanation/metrics/evaluators/base_explainer_evaluator.py
Other components
- Researcher
Connections 35
- Researcher → Pipeline runner: runs steps
exathlon/run.py - Pipeline runner → Configuration: loads settings
exathlon/run.py - Pipeline runner → Dataset creation: dispatches
exathlon/run.py - Pipeline runner → Feature building: dispatches
exathlon/run.py - Pipeline runner → Window datasets: dispatches
exathlon/run.py - Pipeline runner → Window model training: dispatches
exathlon/run.py - Pipeline runner → Scorer training: dispatches
exathlon/run.py - Pipeline runner → Online training: dispatches
exathlon/run.py - Pipeline runner → Online scoring: dispatches
exathlon/run.py - Pipeline runner → Detection evaluation: dispatches
exathlon/run.py - Pipeline runner → Scorer evaluation: dispatches
exathlon/run.py - Pipeline runner → Explainer training: dispatches
exathlon/run.py - Pipeline runner → Explanation evaluation: dispatches
exathlon/run.py - Dataset creation → Dataset managers: uses
exathlon/data/make_datasets.py - Dataset managers → Prepared data files: saves sequences
exathlon/data/managers/base_manager.py - Feature building → Feature transformers: uses
exathlon/features/build_features.py - Feature building → Prepared data files: writes features
- Window datasets → Prepared data files: reads sequences
- Window model training → Detector families: trains models
- Detector families → Detector base: extends
exathlon/detection/detectors/base.py - DIVAD detector → Detector base: extends
exathlon/detection/detectors/divad.py - DIVAD detector → TensorFlow helpers: uses
exathlon/detection/detectors/divad.py - DIVAD detector → Detector helpers: uses
exathlon/detection/detectors/divad.py - Scorer training → Detector families: trains scorer
- Online training → Detector families: trains detector
- Online scoring → Detector families: scores sequences
- Detection evaluation → Detection metrics: computes metrics
exathlon/detection/evaluate_online_detector.py - Scorer evaluation → Detection metrics: computes metrics
exathlon/detection/evaluate_online_scorer.py - Detection metrics → Point evaluator: uses
exathlon/detection/metrics/evaluation.py - Detection metrics → Range evaluator: uses
exathlon/detection/metrics/evaluation.py - Explainer training → Prepared data files: loads inputs
exathlon/explanation/train_explainer.py - Explainer methods → MacroBase explainer: includes method
exathlon/explanation/explainers/data_explainers/macrobase.py - Explanation evaluation → Explainer methods: selects method
exathlon/explanation/evaluate_explainer.py - Explanation evaluation → Explanation metrics: evaluates explanations
exathlon/explanation/evaluate_explainer.py - Pipeline runner → Pipeline outputs: writes outputs