Skip to content

ChingHuanChiu/Credit-Card-Fraud-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credit Card Fraud Detection

Train the model to detect the credit card if fraud or not with supervised model and unsupervised model

Model

Supervised

  • Encoder-Decoder + Classifier: the main idea here is try to transform the origin dataset to a different dimension space let the dataset becomes "linear separable"

    image

Unsupervised

  • Encoder-Decoder image

Evaluation

Supervised

  • Confusion matrix

    image

  • Score

    • F1 Score : 0.95
    • Fraud Recall : 0.915

Unsupervised

* 評估方法, 步驟如下 : 

1. 將測試資料進行模型預測
2. 計算原始資料與預測後的資料計算均方誤差(MSE)
3. 計算所有資料的MSE的平均值與標準差
4. 將落於均值正負1倍標準差外的資料視為異常值
5. 與真實標籤做評估
  • 一倍標準差外的資料圖

    image

  • Confusion matrix

    image

  • Score

    • F1 Score : 0.86
    • Fraud Recall : 0.64

API

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published