Skip to main content

Universal Drone Anomaly Detection Python Package

Project description

Agomax v0.1.8

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

# Using the included demo data
result = agomax_detect(
    data_source='data/crash.csv',    # Package will auto-resolve this path
    mode='offline',
    rules_path='configs/rules.yaml',  # Package will auto-resolve this path
    model_dir='models/'              # Package will auto-resolve this path
)
print(result)

# Or using your own absolute paths
result = agomax_detect(
    data_source='/path/to/your/data.csv',
    mode='offline',
    rules_path='/path/to/your/rules.yaml',
    model_dir='/path/to/your/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.8',
    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.8.tar.gz (369.5 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.8-py3-none-any.whl (390.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agomax-0.1.8.tar.gz
  • Upload date:
  • Size: 369.5 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.8.tar.gz
Algorithm Hash digest
SHA256 b30f2242c3ac0e004e9aefe82b8c52fa44b1311cfc9ed06675c5075c572e4f53
MD5 6b2f4b6bf06ec6ea7ef659a6777958ed
BLAKE2b-256 205817a3d43add3236cad8f973b58ed5b43287da28753d8f8d5e5425d4ea7057

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agomax-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 390.6 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 032796250eaeba892ae215dce1de8b9e3e74cd4bdbb1ea3da5219b41801f53ba
MD5 b0d5a0f825b5033b248c14000937e13a
BLAKE2b-256 34b9a8ee4e85115992c6a914a5c1e334ded173fb8b11fafbc1a6e244ef21a6ca

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