Skip to main content

Universal Drone Anomaly Detection Python Package

Project description

Agomax v0.1.6

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.6.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.6-py3-none-any.whl (389.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agomax-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 ed8dc2fb85eaf3fbc7c90412ac3ed9b127f17315d74457d76dfe5a1d951ebdf4
MD5 6e79e2c81c020b4a2bf72be3bb7ba1fd
BLAKE2b-256 b6299b3f90cb56b95da438ab529eb2e14a2df63e9555732167a5f88eff387d19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agomax-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8eeea1bf8ef353b759efdc8305894f572ca0b423bfa42f1bce6449a92aa3ab38
MD5 e59af9438811c38c4a959a4c6152f229
BLAKE2b-256 3e2ebdbbe169aaae7b1d22d6ce100005abd39e6c29e990b0a54e383c4483d32d

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