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 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 virutal 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.1.1.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

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

graphomaly-0.1.1-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphomaly-0.1.1.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.2 CPython/3.10.4

File hashes

Hashes for graphomaly-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da89056b15b037f86d68087d343a901ae0d76f0c3fee4869dc12080158628860
MD5 d5e3002335a4f7eef16f6fd1cdba1078
BLAKE2b-256 7401d1c79423ce7805d544606e3c50d4e5ca0548b9124f1699b6443dee803136

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphomaly-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.2 CPython/3.10.4

File hashes

Hashes for graphomaly-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf6cbf6a4227a305942ad6b66e3512256eeae8ba337d3f7b33ff91a485f44050
MD5 3b4a94230f608f96c49047d47d0de04a
BLAKE2b-256 deb009a8207f2f9b73d653acc17a07b9b6db534fd1f5b7c20b6b720bfeb7e699

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