Skip to main content

Universal Drone Anomaly Detection Python Package

Project description

Agomax v0.1.4

Universal Drone Anomaly Detection Python Package

Folder Structure

  • agomax/ - Python package with backend logic
  • data/ - Place your data files here (e.g., base.csv, random1.csv, etc.)
  • models/ - Place trained model files here (kmeans.pkl, lof.pkl, svm.pkl, dbscan.pkl, optics.pkl)
  • configs/ - Place your rules config here (rules.yaml)

Installation

pip install agomax

Dashboard Usage

import agomax
agomax.dashboard()  # Launches Streamlit dashboard

API Usage

from agomax.detect import agomax_detect

result = agomax_detect(
    data_source='data/crash.csv',
    mode='offline',
    rules_path='configs/rules.yaml',
    model_dir='models/'
)
print(result)

Data Files

The package includes a demo file crash.csv in the data/ folder for testing and demonstration. You can use this file in the dashboard or with the API to see how anomaly detection works out of the box.

For your own experiments, name your data files as in your prototype: base.csv, random1.csv, wind1.csv, engine1.csv, sensor1.csv, crash.csv and place them in the data/ folder.

Package Setup

To make this a pip-installable package, use the following setup.py:

from setuptools import setup, find_packages

setup(
    name='agomax',
    version='0.1.4',
    author='shaguntembhurne',
    author_email='your@email.com',
    description='Universal Drone Anomaly Detection Python Package',
    long_description=open('README.md').read(),
    long_description_content_type='text/markdown',
    url='https://github.com/shaguntembhurne/agomax',
    packages=find_packages(),
    install_requires=[
        'pandas',
        'numpy',
        'scikit-learn',
        'pyyaml',
        'streamlit',
        'plotly'
    ],
    include_package_data=True,
    package_data={
        '': ['data/crash.csv', 'configs/rules.yaml', 'models/*.pkl'],
    },
    classifiers=[
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
    ],
    python_requires='>=3.7',
)

Or use a pyproject.toml for modern builds.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agomax-0.1.4.tar.gz (368.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agomax-0.1.4-py3-none-any.whl (389.7 kB view details)

Uploaded Python 3

File details

Details for the file agomax-0.1.4.tar.gz.

File metadata

  • Download URL: agomax-0.1.4.tar.gz
  • Upload date:
  • Size: 368.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for agomax-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b15f7c47291677e1fa5f8a4ff175d72a5a7f0cdad606cec8623be75ee5cee44c
MD5 629ac08962682d19d0d09cf922496e75
BLAKE2b-256 00c33d663646bbc3db187b33c6f41808bccb9dc6b9d95ede761139f72d218e77

See more details on using hashes here.

File details

Details for the file agomax-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: agomax-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 389.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for agomax-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0003577a97432ae8426dd31d365be3ee9755ef7e79f761794f285cbf9703e807
MD5 ca39f11beea59d6b311cf99de4d05710
BLAKE2b-256 4f36389aea5ac6754f1adda4de5e43c8f5ffcf2ac6ddee8213eb8f310c38c3c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page