Icon

01_​Training Quantile Method for Fraud Detection

Fraud Detection using the Quantile Method

This workflow uses the Quantile Method to identify fraudulent transactions to check for numeric outliers in credit card data. The quantile method is a type of classification that is well suited to linearly distributed data. We first read in and process the sample data using normalization, then use a quantile-based approach to remove outliers, labeling them as potential fraud. The model's score can be checked at the end through the 'Scorer' node.

The steps we perform are below:
1. Read Training Data
2. Normalize Data and Remove non-outliers
3. Save Models for deployment
4. Mark Outliers and Score Model

URL: Kaggle Dataset https://www.kaggle.com/datasets/mlg-ulb/creditcardfraud

Fraud Detection: Quantile Method - Training


This workflow uses the Quantile Method to identify fraudulent transactions to check for numeric outliers in credit card data. The quantile method is a type of classification that is well suited to linearly distributed data. We first read in and process the sample data using normalization, then use a quantile-based approach to remove outliers, labeling them as potential fraud. The model's score can be checked at the end through the 'Scorer' node with addition information in the 'Extract metrics' metanode.

The steps we perform are below:

  1. Read Training Data

  2. Normalize Data and Remove non-outliers

  3. Save Models for deployment

  4. Mark Outliers and Score Model

Normalize Data and Remove non-outliers

Read Training Data

Mark Outliers and Score Model

Save Models for Deployment

Remove non-outliers based onquantile scalar defined
Numeric Outliers
Read credit card data (sample) Download full dataset via the Kaggle link in the description
CSV Reader
Z-score normalization
Normalizer
Save Numeric Outliersmodel
Model Writer
Save Normalizationmodel
Model Writer
Assign labels:good / fraud(0) (1)
Mark outliers
TransformTarget column from0/1 => good/bad
Expression
Open viewto see score
Scorer

Nodes

Extensions

Links