Coder Social home page Coder Social logo

online_boosting's Introduction

online_boosting

A suite of boosting algorithms and weak learners for the online learning setting.

Ensemblers

Implementations for the following online boosting algorithms are provided:

  1. Online AdaBoost (OzaBoost), from Oza & Russell.
  2. Online GradientBoost (OGBoost), from Leistner et al..
  3. Online SmoothBoost (OSBoost), from Chen et al..
  4. OSBoost with Expert Advice (EXPBoost), again from Chen et al..
  5. OSBoost with Online Convex Programming (OCPBoost), again from Chen et al..

The corresponding Python modules can be found in the 'ensemblers' folder, named as above.

Weak Learners

The package also includes implementations for a number of online weak learners, all of which can be plugged in to the above online boosting algorithms. Some of the key weak learners include:

  1. Perceptrons.
  2. Naive Bayes (Gaussian & Binary).
  3. Random Decision Stumps.
  4. Incremental Decision Trees, based on the DTree module.

Dependencies

The ensemblers and weak learners are generally dependent on Numpy and Scipy. Some of the weak learners (in particular, those prefixed with "sk") are dependent on scikit-learn. File I/O is done through YAML using the PyYAML package.

A full list of dependencies is available in the requirements.txt.

Usage

Run:

$ python main.py [-h] [--record]
               dataset ensembler weak_learner # weak_learners [trials]

Test error for a combination of ensembler and weak learner.

positional arguments:

  • dataset dataset filename (Eg: australian, heart, etc.)
  • ensembler chosen ensembler (Eg: OGBooster, OSBooster, EXPBooster, OCPBooster, etc.)
  • weak_learner chosen weak learner (Eg: Perceptron, DecisionTree, etc.)
  • # weak_learners number of weak learners (Eg: 10, 1000)
  • trials number of trials (each with different shuffling of the data); defaults to 1

optional arguments:

  • -h, --help show this help message and exit
  • --record export the results in YAML format

Datasets

Example datasets in LIBSVM format from different sources can be found here. Place the data files in a new folder called data in the repository.

License

MIT © Charles Marsh

online_boosting's People

Contributors

abhinavjain241 avatar

Stargazers

Roman avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

zss19930910

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.