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 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.2.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

graphomaly-0.1.2-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphomaly-0.1.2.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.10.2

File hashes

Hashes for graphomaly-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6a67f7b53f9ee195a91e5fea16b66ea2065081956422235f7b5c45cb0487062d
MD5 f1e9a76be4e82b60dc794f5e7886d7d9
BLAKE2b-256 42674b23a0bf5d0f229635acdcda36e9a3176220dcbb0246d72440641b08427f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: graphomaly-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 41.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.10.2

File hashes

Hashes for graphomaly-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3a9cf9432a156e6f27e2c8675a4a700f954299b6815742e6d9ec977b99b5b2b
MD5 496546b5844efadd0e3a2aa63a4d0ed2
BLAKE2b-256 1ddb77aeab1f4a09e35a45486e86020fa1d3c4317c30f499de7d63b12bfbeb2b

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