Icon

Dealing with class imbalance in KNIME

Annotations and comments
  • No class imbalance handling
  • Undersampling class imbalance handling
  • Oversampling - Duplication class imbalance handling
  • Oversampling - Creation class imbalance handling
  • Read in data CC transactions
  • Explore data
  • Join the duplicated fraud cases to the normal cases data
  • Set 291 loops
  • Collate the data over 291 iterations
  • Isolate the fraud cases
  • Select an equal amount of normal and fraud transactions
  • For the test data, How many more normal transactions do we have than fraud ones? =113729/390 = 291.6
  • Remove rows with missing values if any
  • 80/20 Train/Test
  • Create synthetic data
  • Catching 92.16% of fraud cases
  • Catching 85.29% of fraud cases
  • Catching 88.24% of fraud cases
  • Catching 81.37% of fraud cases
  • Apply model on test set
  • Learn to predict fraud with training set

Nodes

Extensions

Links