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.
Clone and install requirements:
git clone https://github.com/Havilah-Blockchain-Studios/PlotSenseAI-Hackathon-Demo-Projects.git
cd project_two
pip install -r requirements.txtRun the demo script:
python -m examples.demo_anomaly_detectionExpected Output: Console printout of detected anomalies. A PlotSense-generated visualization of the dataset.
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
Run lightweight tests with:
python -m pytest tests/test_detection.py