Giter Club home page Giter Club logo

bitcoin_gambling_tell's Introduction

bitcoin_gambling_predict

Introduction

Someone may launder money through bitcoin gambling. This project is to predict which addresses are gambling accounts.

We divided these accounts into three kinds: pool, exchange, and gamebling.

Users can refer to the results after predicting as the protect themselves from joining money laundering indirectly.

Environment

Python Versrion : 3.9+

Use this command on terminal to install necessary modules :

pip3 install -r requirements.txt

Execute program file

Step 1 :

Use this command on terminal to execute program file:

python3 main.py

Step 2 :

After you execute this python file, you will see the message:

Please insert the algorithms you want to use:

This time you can insert keyword of algorithm.

If you want to execute more than two algorithms, please segment them with commas.

And if you want to execute all the algorithm, please insert "all".

Step 3 :

Then, you will also see the message:

Do you want to predict? (y / other value)

If you want to use these algorithms to predict, please insert "y".

If not, pleasw insert any other value except "y".

Step 4 :

You will see some images and csv files created.

Result :

* The most accurate algorithm is Decision Tree Classifier with depth 5.

* The total samples of training data are 3336.

How do we create features?

Step 1 : Prepare classified tx ID data

classify_tx_data.py

=> get_tx_data.py

=> get_tx_info.py

Step 2 : Prepare classified address data

get_address_classfied.py

=> get_features

Step 3 : merge sheet2 and sheet3 (tag the address)

merge_data.py

This process takes about 40 minutes to ETL and generate features data. (tested in M1pro environment)

Special features we create:

fee to in ratio

Fee to in ratio is fee divided by total IN amount in a transaction. And fee is the total IN amount minus total OUT amount.

1. max_fee_to_in

Each account may join in serveral transactions, this feature (column) collect the maximun fee to in ratio among these transaction for each account.

2. n_pr80_fee_to_in

This feature collect the 80% percentile value (fee to in ratio) among the transactions where a certain account join.

Reference

support_algorithm.yaml

You can look up the keyword of algorithm in this file.

Beside, if you want to stop some algorithms from executing, comment out them in this file.

column explanation.txt

You can look up the column explanation in this file.

bitcoin_gambling_tell's People

Contributors

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