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.

Installation and setup

Install via pip:

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

A package will be uploaded to PyPI soon.

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

Uploaded Source

Built Distribution

graphomaly-0.1-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphomaly-0.1.tar.gz
  • Upload date:
  • Size: 29.8 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.0 CPython/3.10.3

File hashes

Hashes for graphomaly-0.1.tar.gz
Algorithm Hash digest
SHA256 a18cafbed20b0e4c6b51a041395821d491c3b8c09e80d9f33ece0cf47f373c77
MD5 2ce01dfbfd0a7abd5413f39a1ad0fc3c
BLAKE2b-256 17c98f0eedc7c237c57068932f0b9884e911d78a5badf2755bb1f352468c422d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: graphomaly-0.1-py3-none-any.whl
  • Upload date:
  • Size: 40.3 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.0 CPython/3.10.3

File hashes

Hashes for graphomaly-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bf8ea83f635504b97010af3f012ab7839c28da851ccd842d3696c14674296a8
MD5 7948113d2c1bd70f43138023119b5cc9
BLAKE2b-256 801d7475aeeb960626f5e0c0c295fda790e79d2684f0975f6cf38647a5dc4ce5

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