GithubHelp home page GithubHelp logo

xrosliang / augboost Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ptannor/augboost

0.0 1.0 0.0 56 KB

AugBoost: Gradient Boosting Enhanced with Step-Wise Feature Augmentation (2019 IJCAI paper)

License: Other

Jupyter Notebook 21.10% Python 78.90%

augboost's Introduction

AugBoost

Gradient Boosting Enhanced with Step-Wise Feature Augmentation. Based on the 2019 IJCAI paper by Philip Tannor and Lior Rokach.

About

The code in this repository is based heavily on scikit-learn's 'gradient_boosting.py'. We started this as a fork of sklearn, but split away when we saw it would be more convenient. Thanks! =]

Prerequisites

  • Python 3.6.5 (Ubuntu)
  • sklearn.version = '0.19.1'
  • keras.version = '2.2.0'
  • tensorflow.version = '1.8.0'

And a number of small packages which are included in Anaconda. The most important prerequisite is probably the version of sklearn, although we haven't checked if any of them are necessary.

Getting Started

After cloning the repository, the 2 modules in it can be imported using these lines of code:

from AugBoost import AugBoostClassifier as ABC
from AugBoost import AugBoostRegressor as ABR    #regression module has an issue and doesn't work yet

Meanwhile, only the code for classification tasks works =[

Create your model using code that looks like this:

model = ABC(n_estimators=10, max_epochs=1000, learning_rate=0.1, \
    n_features_per_subset=round(len(X_train.columns)/3), trees_between_feature_update=10,\
    augmentation_method='nn', save_mid_experiment_accuracy_results=False)

And then train and predict like this:

model.fit(X_train, y_train)
model.predict(X_val)

In the file 'notebook for experiments.ipynb' there is an example of code for running experiments with AugBoost.

augboost's People

Contributors

augboost-anon avatar ptannor 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.