Icon

05_Cohen's_Kappa_for_Evaluating_Classification_Models

There has been no title set for this workflow's metadata.

This workflow demonstrates how Cohen's kappa can be used to evaluate the performance of a classification model when dealing with imbalanced data. We also show how Cohen's kappa obtains greater values not only due to better model performance, but also because of a more balanced target class distribution.

URL: Cohen's Kappa: Learn It, Use It, Judge It https://www.knime.com/blog/cohens-kappa-an-overview
URL: Scoring Metrics eBook https://www.knime.com/knimepress/scoring-metrics-evaluating-machine-learning-models

Annotations and comments
  • Case 1: Model training without resampling
  • Train two models with unbalanced data: One with and the other without resampling the training set.
  • Case 2: Model training with resampling
  • Apply the model to test data with different distributions of the target class. Collect their Cohen's kappa values and plot them in a line plot.
  • bad: 100
  • good: 900
  • good
  • bad
  • Read GermanCredit.csv
  • proportion of bad
  • proportion of good
  • Varying class proportions
  • Create 100 test sets with the same class distribution
  • Positive class probability vs. Cohen's kappa
  • col_mean
  • Target column: remove String: unknown
  • DecTree.pmml
  • 70/30 on score
  • customer rating
  • Read test.table
  • test.table
  • Collect proportion of bad and Cohen's kappa

Nodes

Extensions

Links