Coder Social home page Coder Social logo

tomartushar / credit-card-fraud-detection Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 254 KB

An ensemble of machine learning models for detecting fraudulent credit card transactions, utilizing advanced techniques for feature selection, data imbalance handling, and hyperparameter tuning.

Jupyter Notebook 100.00%
clustercentroids credit-card-fraud decision-tree-classifier logistic-regression machine-learning random-forest-classifier recursive-feature-elimination sampling-methods smote-sampling smoteenn xgboost-classifier bivariate-analysis exploratory-data-analysis t-test univariate-analysis

credit-card-fraud-detection's Introduction

Credit Card Fraud Detection

Design a model to recognize fraudulent credit card transactions.

Dataset

The dataset is available on Kaggle.

  • Instead of actual features, PCA components are available in the dataset along with transaction amount and elapsed time.
  • Data-Splits: Train/Dev/Test

Analysis

  • Perform basic data exploration.
  • Check for missing values.
  • Check for outliers.
  • Perform univariate analysis (using t-test).
  • Perform bivariate analysis.

Utilities

  • Feature Scaling: RobustScaler is used in logistic regression modeling.
  • Feature Selection: Recursive Feature Elimination algorithm is used to determine the best feature combination.
  • Data Imbalance: SMOTEENN Hybrid and ClusterCentroid downsampling algorithms have been experimented with to address class imbalance problems.
  • Hyperparameter Tuning: GridSearchCV algorithm is used to set the hyperparameter values.

Evaluation

  • Area Under Precision-Recall curve is used as the main metric in imbalanced data settings.
  • Also, the F1-score is reported.

Results

Model F1-score AUPR
Logistic Regression 0.76 0.59
Decision Tree 0.67 0.60
Random Forest 0.72 0.63
XGBoost 0.67 0.61

credit-card-fraud-detection's People

Contributors

tomartushar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.