Skip to main content

software package for anomaly detection in graphs modeling financial transactions

Project description

Graphomaly

The Anti-Money Laundering (AML) tool. Find abnormal data in graph and network structures.

Official package documentation here.

This work was supported by the Graphomaly Research Grant.

Installation and setup

Install via pip from the PyPi repository:

pip install graphomaly

or for the latest changes not yet in the official release:

pip install git+https://gitlab.com/unibuc/graphomaly/graphomaly

Usage

The package follows the sklearn API and can be included in your projects via

from graphomaly.estimator import GraphomalyEstimator

which will provide you with a standard scikit-learn estimator that you can use in your pipeline.

For configuration and tweaks please consult the YAML file for now until documentation matures.

Development and testing

First clone the repository and change directory to the root of your fresh checkout.

0. Install Prerequisites

Install PyPA’s build:

python3 -m pip install --upgrade build

1. Build

Inside the Graphomaly directory

python -m build

2. Virtual Environment

Create a virtual environment with Python:

python -m venv venv

Activate the environment:

source venv/bin/activate

For Windows execute instead:

venv\Scripts\activate

3. Install

Inside the virtual environment execute:

pip install dist/graphomaly-*.whl

Running unit tests

First create the results directory:

mkdir -p tests/results/synthetic

Run the initial test on synthetic data to make sure things installed ok:

cd tests && python test_synthetic

Then run the other unit tests by hand as above or via pytest:

pytest  # add -v for verbose, add -s to print(...) to console from tests

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

graphomaly-0.2.6.tar.gz (49.7 kB view details)

Uploaded Source

Built Distribution

graphomaly-0.2.6-py3-none-any.whl (71.2 kB view details)

Uploaded Python 3

File details

Details for the file graphomaly-0.2.6.tar.gz.

File metadata

  • Download URL: graphomaly-0.2.6.tar.gz
  • Upload date:
  • Size: 49.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.9.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.7

File hashes

Hashes for graphomaly-0.2.6.tar.gz
Algorithm Hash digest
SHA256 1e4f1254921a07596ed97cae7b04c593a8d20ae321f0d33416b294cf1ace400b
MD5 8220c8e465b39c058a392f93eea9b731
BLAKE2b-256 ce2e2c33bca1f3751301ab7ad3c86b458cac5abf4e9b2c1f963ebf4df4ca7b5f

See more details on using hashes here.

Provenance

File details

Details for the file graphomaly-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: graphomaly-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 71.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.9.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.7

File hashes

Hashes for graphomaly-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c51b68396bca5e1279bbd61838ebd32ce64dc335848db23dfa120012f08c7133
MD5 35e1f3fd0a7fdeedeb81464993270ad1
BLAKE2b-256 7d86a31bb1f62ad6f388c6ce241252fc5d38a81d704901e62bc2f06a92cbe34f

See more details on using hashes here.

Provenance

Supported by

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