Giter Site home page Giter Site logo

havelhakimi / bitcoinheistransomware Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 92 KB

Decision Trees, Ensembling, Adaboost and Random Forest on Bitcoin Heist Ransomware Address Dataset

Jupyter Notebook 100.00%
decision-trees ensembling random-forest adaboost

bitcoinheistransomware's Introduction

Machine Learning Models for Bitcoin Heist Ransomware Address Dataset

This is a solution notebook to an assignment question given in a Data Mining graduate course. Each code block is accompanied by relevant analysis wherever required.
Dataset link : https://archive.ics.uci.edu/ml/datasets/BitcoinHeistRansomwareAddressDataset
Broadly, the following steps have been performed in this solution notebook:

  • A custom designed train-test split method which splits the data into training, validation and test set (70:15:15).
  • Decision Tree trained using both the Gini index and the Entropy by changing the max-depth as [4,8,10,15,20].
    • The splitting criteria (gini/entropy) selected is the one which gives better accuracy on test set with the chosen depth.
  • Ensembling method is a method to combine multiple not-so-good models to get a better performing model.
    • Created 100 different decision stumps (max-depth 3). For each stump trained it on a randomly selected 50% of the training data i.e. selelct data for each stump separately
    • Finally predicted the test samples's labels by taking a majority vote of the output of the stumps.
  • Used the sklearn Adaboost algorithm on the above dataset and reported the testing accuracy.
    • Decision tree is used as the base estimator and with a number of estimators as [4,8,10,15,20].
    • Further compared the Random Forest and Adaboost results.
These above assumptions and the flow of work is according to the questions asked in assignment.

bitcoinheistransomware's People

Contributors

havelhakimi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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