Giter VIP home page Giter VIP logo

bitcoin_ponzhi_scheme_detection's Introduction

Ponzhi Classfication

The folder ponzhi_scheme_detection contains all the files to generate the dataset and run the ponzhi_scheme_detection.

MAIN_DIR = ponzhi_scheme_detection/

DATA_DIR = ponzhi_scheme_detection/data/

TRANSACTIONS_DIR = ponzhi_scheme_detection/transactions/

Steps to run the code:

  1. cd ponzhi_scheme_detection
  2. create TRANSACTIONS_DIR if it doesn't exist with mkdir transactions. This folder will store all the transactions of the bitcoin addresses which are stored in the DATA_DIR
  3. The all_addresses.csv and ponzi_32.csv are taken from https://github.com/bitcoinponzi/BitcoinPonziTool/tree/master/CSV
  4. Run python merge_addresses.py located in MAIN_DIR to generate merged_addresses.csv in the DATA_DIR. The merged_addresses contains both the ponzi transactions and non ponzhi transaction addresses. We will use these addresses to get their respective transactions using the block explorer api
  5. cd data_collection
  6. Run python save_transactions.py to generate all the transactions of public addresses in json format in the TRANSACTIONS_DIR.
  7. Since 5. takes a lot of time, it is best to change MAX_DEGREE hyperparameter to dowload transaction details of addresses with less transactions first. I have downloaded all the addresses with transactions less than 25k.
    1. also generates a CSV in the DATA_DIR keeping track of files that have been succesfully downloaded. Using these transactions information, we will generate features to train Machine learning models.
  8. cd ../feature_generation and run get_features.py to generate features.csv in the DATA_DIR
  9. cd ../ and run the notebook Features_EDA_and_data_transform.ipynb to do EDA and generate transformed features
  10. run Classfication.ipynb to train models for the transformed features

bitcoin_ponzhi_scheme_detection's People

Contributors

gowtham1997 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.