Giter Club home page Giter Club logo

ml_xente_fraud_detection's Introduction

๐Ÿ”Ž Xente Fraud Detection Challenge

๐ŸŽฏ Our goal: Accurately classify the fraudulent transactions from Xente's e-commerce platform and save money.

The data used for this is provided from this website: Xente Fraud Detection dataset.

Xente is an e-commerce and financial service app serving 10,000+ customers in Uganda. This dataset includes a sample of approximately 140,000 transactions that occurred between 15 November 2018 and 15 March 2019.

Our Evaluation Metric: F1-score

This challenge is a great exercise for classification problems and this notebook used various classification models, SMOTE sampling technique and Ensemble methods to improve the F1 score results.

๐Ÿ“„ Contents:

  • EDA and feature engineering
  • Baseline model
  • Logistic regression
  • Decision tree
  • Random forest
  • SMOTE
  • SMOTE with random forest
  • Ensemble methods
  • Loss prevented by using our final model
  • Error Analysis

Requirements and Environment

Requirements:

  • pyenv with Python: 3.9.8

Environment:

For installing the virtual environment you can either use the Makefile and run make setup or install it manually with the following commands:

pyenv local 3.9.8
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install imbalanced-learn

ml_xente_fraud_detection's People

Contributors

ivyloeou avatar

Stargazers

 avatar

Watchers

 avatar

ml_xente_fraud_detection's Issues

Create a baseline model

Value of Product:
Find fraudulent transactions, save money, avoid reputation damage and prevent money laundering.

Prediction:
Transaction is fraudulent

Evaluation Metric:
f1-score (recommended and given by Zindi)

Baseline Model:
Transactions that are over 2,400,000 in value are likely to be fraudulent

Score:
f1-score = 0.32

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.