Skip to main content

Anomaly detection in graphs modeling financial transactions and computer networks.

Project description

Graphomaly

Automatic tool for Anti-Money Laundering (AML) and detecting abnormal behavior in computer networks. Find abnormal data in graph and network structures.

Official package documentation here.

This work was initially supported by the Graphomaly Research Grant and later partially supported by the Netalert 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

Install via docker from the DockerHub repository

docker pull pirofti/graphomaly

For using the GPU pull the dedicated image:

docker pull pirofti/graphomaly:latest_gpu

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.3.2.tar.gz (71.5 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.3.2-py3-none-any.whl (89.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphomaly-0.3.2.tar.gz
  • Upload date:
  • Size: 71.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for graphomaly-0.3.2.tar.gz
Algorithm Hash digest
SHA256 7cdf8b64eb8e9d7c110d47a53b12c5d3483275b7743c95708f1be3ddf4d2f30a
MD5 a2d3bc915de9b4b83920e68d15d32f77
BLAKE2b-256 e76197da753bd2fb3d531cf7b3c9f58889178f25b55b79e2c2679a374d73a55e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphomaly-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 89.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for graphomaly-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e4e8be2112b7b02d2158103ad17799696ed19857c7a58d54bfbb897d3b2dab7
MD5 363e575987102082a0c9710a8636c79f
BLAKE2b-256 c770546e7700e329442de40f242e29a521e7c37367ea5b6faf4a58efb37f28f1

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