# GIN financial fraud detection

> GIN financial fraud detection - Integrate a Graph Isomorphism Network (GIN) as a custom model task
> in DataRobot using DRUM.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-05-01T23:10:47.733870+00:00` (UTC).

## Primary page

- [GIN financial fraud detection](https://docs.datarobot.com/en/docs/api/dev-learning/accelerators/custom-model-dev/graph-gin.html): Full documentation for this topic (HTML).

## Related documentation

- [Developer documentation](https://docs.datarobot.com/en/docs/api/index.html): Linked from this page.
- [Developer learning](https://docs.datarobot.com/en/docs/api/dev-learning/index.html): Linked from this page.
- [AI accelerators](https://docs.datarobot.com/en/docs/api/dev-learning/accelerators/index.html): Linked from this page.
- [Custom model development](https://docs.datarobot.com/en/docs/api/dev-learning/accelerators/custom-model-dev/index.html): Linked from this page.
- [DRUM](https://docs.datarobot.com/en/docs/classic-ui/modeling/special-workflows/cml/cml-drum.html): Linked from this page.

## Documentation content

# GIN financial fraud detection

[Access this AI accelerator on GitHub](https://github.com/datarobot-community/ai-accelerators/blob/main/advanced_ml_and_api_approaches/graph_financial_fraud_classification/Graph_Financial_Fraud_Classification.ipynb)

This accelerator demonstrates the end-to-end implementation of a Graph Isomorphism Network (GIN) as a custom model task in DataRobot. It serves multiple purposes, including model development, local testing, and integration with DataRobot’s custom model framework.

The primary objectives of this accelerator are to demonstrate the complete pipeline for adding a custom graph-based task to DataRobot, and to outline DataRobot's custom model hooks implementation. These hooks include:

- transform : Preprocess JSON graph data into DGL format. DRUM hooks automatically call transform before executing the fit and score hooks.
- fit : Train the GIN model and implicitly save it.
- score : Score the data in prediction mode.
- load_model : Load pre-trained models.

The accelerator's workflow includes three major steps:

1. Manually implement the DRUM process. Follow a step-by-step breakdown of data transformation, model training, and prediction viaDRUM.
2. Test models locally with DRUM to validate hooks before integrating the model with DataRobot.
3. Implement a custom task in DataRobot with automated validation and threshold optimization.
