GithubHelp home page GithubHelp logo

ponzi_tranc's Introduction

USAGE

sudo apt-get install postgresql-client
pip install pexpect,pandas,colorama

mkdir sql
mkdir result
python code/main.py

To evaluate, run:

python code/classifier.py

feature

特征名称 含义 类型
ponzi 是否为庞氏合约的标签,庞氏:1,normal:0 nominal{0,1}
nbr_tx_in 向合约转账交易总次数 numerical
nbr_tx_out 合约向外转账总次数 numerical
Tot_in 向合约转账的总金额 numerical
Tot_out 合约向外转账的总金额 numerical
mean_in 向合约转账的平均金额 numerical
mean_out 合约向外转账的平均金额 numerical
sdev_in 向合约转账金额的标准方差 numerical
sdev_out 合约向外转账金额的标准方差 numerical
gini_in 向合约转账金额的基尼系数 numerical
gini_out 合约向外转账金额的基尼系数 numerical
avg_time_btw_tx 平均多长时间有一笔交易 numerical
lifetime 合约生存周期 numerical

result

134ponzi+134dapp

weka.classifiers.trees.RandomForest -P 100 -I 100 -num-slots 1 -K 0 -M 1.0 -V 0.001 -S 1 -depth 6
accuracy precision recall f-score
0.890 0.890 0.890 0.890

![](.\log\weka result.png)

![weka features](.\log\weka features.png)

fortrain

133ponzi + 1262dapp Run classifier python file to get the result.

precision recall f-score
76.7% 57.9% 66.0%

ponzi_tranc's People

Contributors

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