Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 1.47 KB

README.md

File metadata and controls

36 lines (32 loc) · 1.47 KB

Anomaly Detector

This anomaly detector uses a combination of OneClassSVM and IsolationForest to detect anomalies in the resource metrics data.

Project Structure

This project uses poetry for dependency management. The project structure looks like this:

.
├── anomaly_detector/
│   ├── resources/
│   │   └── metrics_data.csv   # Dataframe mapped with resource ID: 5.948095306408936e+17
│   ├── streaming/   # Example files to showcase realworld scenario
│   │   ├── producer.py
│   │   └── consumer.py
│   ├── dataloader.py   # utility to load abd preprocess metrics data
│   ├── detector.py   # File containing the AnomalyDetector class
│   └── main.py   # Main file with executable example
├── .gitignore
├── Observability_Anomaly_Detection.ipynb   # Notebook with thorough analysis and anomaly detection
├── README.md
└── pyproject.toml

Set-up

Since we are using poetry for dependency management (ensure you have it installed), we can get started by running the following two commands:

  1. To create a virtual environment
poetry shell
  1. Install dependencies
poetry install

Note

This python package contains an example implementation of what a real world production scenario would look like. The detailed modelling for anomaly detection is presented in the Jupyter Notebook