Icon

Fraud_​Detection_​Isolation_​Forest_​Training

Fraud Detection: Train an isolation forest model using the KNIME H2O Machine Learning Integration

This workflow uses the KNIME H2O Machine Learning Integration to train an isolation forest model for fraud detection, a method particularly effective for anomaly detection, to spot potential fraud in transactional data. Starting with data intake and preprocessing, it segments the data into training and validation sets. We then use the H2O Isolation Forest Learner to train the model on the 2/3 of 'good' transaction patterns. The trained model is validated against the training set from the split, with its performance measured and the model saved for use in the deployment workflow.

Here are the steps taken to train the mode;
1. Read Training Data
2. Data Preprocessing: Partition data into a training, test, and validation set
3. Train/Validate the model and Evaluate results
4. Save model for deployment
5. Evaluate Results

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

Fraud Detection: Train an isolation forest model using the KNIME H2O Machine Learning Integration

This workflow uses the KNIME H2O Machine Learning Integration to train an isolation forest model for fraud detection, a method particularly effective for anomaly detection, to spot potential fraud in transactional data. Starting with data intake and preprocessing, it segments the data into training and validation sets. We then use the H2O Isolation Forest Learner to train the model on the 2/3 of 'good' transaction patterns. The trained model is validated against the training set from the split, with its performance measured and the model saved for use in the deployment workflow.

Here are the steps taken to train the mode;
1. Read Training Data
2. Data Preprocessing: Partition data into a training, test, and validation set
3. Train/Validate the model and Evaluate results
4. Save model for deployment
5. Evaluate Results

Read Training Data

Data Preprocessing
Partition data into a training, test, and validation set






Save model for deployment

Train/Validate the model

Evaluate Results

Classify Based onMean Length
Rule Engine
Data Preprocessing
Open the viewto see the scoringresults
Scorer (JavaScript)
Read credit card data (sample) Download full dataset via the Kaggle link in the description
CSV Reader
Create KNIMETable
H2O to Table
Apply IsolationForest to get Mean Length
H2O Isolation Forest Predictor
H2O Isolation Forest Learner
Write IsolationForest.model
Model Writer

Nodes

Extensions

Links