Skip to main content

Universal Drone Anomaly Detection Python Package

Project description

Agomax v0.1.7

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.7',
    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.7.tar.gz (369.1 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.7-py3-none-any.whl (390.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agomax-0.1.7.tar.gz
  • Upload date:
  • Size: 369.1 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.7.tar.gz
Algorithm Hash digest
SHA256 fdc9d38145166339babba705c7451a8ba6decce3f4aaa6080130f22868e59382
MD5 1120e041a63e460b72b05d84dcda0fc6
BLAKE2b-256 389edcbcafafa55f389a3a91a6435a332b81f42443f175b191bfdc96da846630

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agomax-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 390.2 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4ab0e368b5eed7747ecd647d47a0aaba4b90a5b0a91ba49bd60c49d60c566f54
MD5 8fd8f815613e3f9bbe9d01ba7d7926f4
BLAKE2b-256 5859afca936b916e67e4aef8ce35cb262bf344d4a7c470bfd7acd7bf74369737

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