Skip to content

Latest commit

Β 

History

History
48 lines (39 loc) Β· 1.39 KB

File metadata and controls

48 lines (39 loc) Β· 1.39 KB

PlotSense Anomaly Detection Plugin

πŸ“Œ Overview

This is a demo plugin for PlotSense AI that shows how developers can extend it with anomaly detection functionality.
We implement a simple Z-score based anomaly detector, integrate it with PlotSense, and provide visualization of results.


βš™οΈ Cloning and Installation

Clone and install requirements:

git clone https://github.com/Havilah-Blockchain-Studios/PlotSenseAI-Hackathon-Demo-Projects.git
cd project_two
pip install -r requirements.txt

πŸš€ Usage Example

Run the demo script:

 python -m examples.demo_anomaly_detection

Expected Output: Console printout of detected anomalies. A PlotSense-generated visualization of the dataset.

πŸ“‚ Project Structure

plotsense-anomaly-plugin/
β”œβ”€β”€ plotsense_anomaly/
β”‚   β”œβ”€β”€ __init__.py      # tells Python plotsense_anomaly is a package (it can even be empty)
β”‚   β”œβ”€β”€ detection.py            # anomaly detection logic
β”‚   └── visualization.py        # connect anomalies β†’ PlotSense
β”œβ”€β”€ examples/
β”‚   └── demo_anomaly_detection.py   # working example
β”œβ”€β”€ tests/
β”‚   └── test_detection.py          # lightweight tests
β”œβ”€β”€ README.md
└── requirements.txt   # packages to be installed 

πŸ§ͺ Running Tests

Run lightweight tests with:

python -m pytest tests/test_detection.py