Hub
Pricing About
WorkflowWorkflow

01_Training Random Forest for Fraud Detection

Practicing Data ScienceCybersecurityFraud DetectionKNIME for FinanceAudit & Compliance
+2
knime profile image
Draft Latest edits on 
Jan 22, 2025 2:56 PM
Drag & drop
Like
Download workflow
Workflow preview
Fraud Detection: Random Forest Model Training

The workflow reads in the creditcard.csv file and trains and evaluates a Random Forest model to classify transactions as either fraudulent or not. Notice the Rule Engine node classifies all transactions with fraud probability above 0.3 as fraudulent. We apply a threshold of 0.3 to the probability of being a fraudulent transaction (default is 0.5). Adopting a lower threshold makes the algorithm more responsive in classifying frauds. You can evaluate the results by opening 'Evaluation' component view. After training, the model is saved for deployment. In our case we use Random Forest Learner, but we can use any other Supervised model.


This workflow demonstrates how we can train the model on the provided data:
1. Read training data
2. Train the Random Forest Model
3. Evaluate model results
4. Save trained model for deployment

External resources

  • Kaggle Dataset
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.4.0
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.4

    knime profile image
    knime
  • Go to item
    KNIME Ensemble Learning WrappersTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.0

    knime profile image
    knime
  • Go to item
    KNIME ExpressionsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.0

    knime profile image
    knime
  • Go to item
    KNIME JavaScript Views (Labs)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.0

    knime profile image
    knime
  • Go to item
    KNIME ViewsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.0

    knime profile image
    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits