Skip to content
python library implementing ensemble methods for regression, classification and visualisation tools including Voronoi tesselations.
Branch: master
Clone or download
Latest commit fba7faf Jan 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs examples and notebooks Jun 7, 2018
pycobra added random state Dec 14, 2018
tests Removed faulty test Dec 25, 2018
.travis.yml still trying.. Nov 30, 2018
CHANGELOG.md Update to v0.2.0 Jul 27, 2017
LICENSE.txt Setting up pycobra Mar 25, 2017
README.rst Formatting error Jun 21, 2018
appveyor.yml Appveyor, other test Dec 17, 2018
requirements.txt Setting up pycobra Mar 25, 2017
setup.cfg Setting up pycobra Mar 25, 2017
setup.py Updated tag May 24, 2018
tests.py coverage Dec 25, 2018

README.rst

Travis Status Coverage Status Python27 Python35

pycobra

pycobra is a python library for ensemble learning. It serves as a toolkit for regression and classification using these ensembled machines, and also for visualisation of the performance of the new machine and constituent machines. Here, when we say machine, we mean any predictor or machine learning object - it could be a LASSO regressor, or even a Neural Network. It is scikit-learn compatible and fits into the existing scikit-learn ecosystem.

pycobra offers a python implementation of the COBRA algorithm introduced by Biau et al. (2016) for regression.

Another algorithm implemented is the EWA (Exponentially Weighted Aggregate) aggregation technique (among several other references, you can check the paper by Dalalyan and Tsybakov (2007).

Apart from these two regression aggregation algorithms, pycobra implements a version of COBRA for classification. This procedure has been introduced by Mojirsheibani (1999).

pycobra also offers various visualisation and diagnostic methods built on top of matplotlib which lets the user analyse and compare different regression machines with COBRA. The Visualisation class also lets you use some of the tools (such as Voronoi Tesselations) on other visualisation problems, such as clustering.

pycobra is described in the paper "Pycobra: A Python Toolbox for Ensemble Learning and Visualisation", Journal of Machine Learning Research, vol. 18 (190), 1--5.

Documentation and Examples

The notebooks directory showcases the usage of pycobra, with examples and basic usage. The documentation page further covers how to use pycobra.

Installation

Run pip install pycobra to download and install from PyPI.

Run python setup.py install for default installation.

Run python setup.py test to run all tests.

Run pip install . to install from source.

Dependencies

  • Python 2.7+, 3.4+
  • numpy, scipy, scikit-learn, matplotlib

References

  • B. Guedj and B. Srinivasa Desikan (2018). Pycobra: A Python Toolbox for Ensemble Learning and Visualisation. Journal of Machine Learning Research, vol. 18 (190), 1--5.
  • G. Biau, A. Fischer, B. Guedj and J. D. Malley (2016), COBRA: A combined regression strategy, Journal of Multivariate Analysis.
  • M. Mojirsheibani (1999), Combining Classifiers via Discretization, Journal of the American Statistical Association.
  • A. S. Dalalyan and A. B. Tsybakov (2007) Aggregation by exponential weighting and sharp oracle inequalities, Conference on Learning Theory.
You can’t perform that action at this time.