Giter VIP home page Giter VIP logo

cfxgb's Introduction

CFXGB : Cascaded Forest and XGBoost Classifier

This is a supervised machine learning model created by Surya Dheeshjith and Thejas Gubbi Sadashiva. The model is based on paper [1]. CFXGB is an extension of the model proposed in [2]. Implementation of cascaded forest is available at https://github.com/kingfengji/gcForest.

This repository also exists in this link with integrated Travis CI and Code coverage.

Implementation done in Python 3.7.3

For more details, contact Surya Dheeshjith : [email protected] (or) Thejas Gubbi Sadashiva : [email protected]

Details

We have included demo code for execution and a detailed explanation of how you can use your own dataset with custom model parameters.

Pipeline

The implementation of using Parent nodes in the decision trees as stated in the paper has also been implemented

Parent nodes

Requirements

  • All required packages are in requirements.txt

pip install -r requirements.txt

If facing issues downloading xgboost package, use this conda command

conda install py-xgboost

Running demo code

python3 Main.py -d Kad -p DefaultParameters.json

List of Command-line Parameters

  • -h --help : List the parameters and their use.

  • -d --dataset : A dataset must be considered for learning. This parameter takes the dataset csv file name. This parameter must be passed.

  • -p --parameters : Model Parameters are passed using a json file. This parameter must be used to specify the name of json file. This parameter must be passed.

  • -i --ignore : Ignore the first column. (For some cases).
    Default = False

  • -r --randomsamp : Balance the dataset using random under sampling. (Use for imbalanced datasets).
    Default = False

  • -v --parentvaluecols [ BETA ]: Addition of columns based on class distributions of parents of leaf nodes in the decision tree.
    Default = False

  • -c --cores [ BETA ]: Number of cores to be used during addition of columns (When -v is True).
    Default = -1 (All cores)

How to run code for different datasets and model parameters

python3 Main.py -d <Dataset_Name> -p <Parameter_list>.json

References

[1] CFXGB: An Optimized and Effective Learning Approach for Click Fraud Detection.

[2] Z.-H. Zhou and J. Feng. Deep Forest: Towards an Alternative to Deep Neural Networks.

Last updated : 22 June 2020

cfxgb's People

Contributors

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