A graph machine learning project for financial transaction networks. ClickHouse and MLflow run with Docker Compose; ingestion, feature engineering, and model training are planned.
Install uv and Docker Compose, then run:
uv sync # Python 3.12 environment
cp .env.example .env # First time only; set your password in .env
docker compose up -dOn macOS, PyTorch uses the standard macOS build. CPU is available, and MPS may be available for Apple GPU acceleration.
- ClickHouse: SQL interface, HTTP port
8123, native port9000. Log in with the credentials in.env. - MLflow: http://localhost:5000. Set
MLFLOW_TRACKING_URI=http://localhost:5000for training clients.
Both services bind to localhost. Their data is stored in data/clickhouse and data/mlflow, which Git ignores. MLflow uses SQLite for metadata and stores artifacts locally.
Run docker compose down to stop the services without deleting data. Changing .env after ClickHouse initializes does not update its existing user. Run Python with uv run python and tests with uv run pytest.
Open the HTML diagram in a browser. The diagram describes the planned workflow:
- Ingest transaction and account data into ClickHouse MergeTree tables.
- Compute historical node and edge features with SQL, using only transactions before the prediction cutoff.
- Construct a PyTorch Geometric graph and train GraphSAGE alongside a non-graph baseline.
- Compare precision, recall, F1, and PR-AUC; benchmark ClickHouse feature queries.
- Record dataset versions, feature settings, parameters, metrics, and model artifacts in MLflow.
The services are configured; ingestion, feature engineering, model training, and evaluation are not yet implemented.